|
25 | 25 | text-decoration: none; |
26 | 26 | } |
27 | 27 |
|
28 | | -.section_buttons { |
29 | | - display: flex; |
30 | | - justify-content: space-between; |
31 | | -} |
32 | | - |
33 | | -.next_section_button, |
34 | | -.previous_section_button { |
35 | | - display: block; |
36 | | - padding: calc(var(--spacing-large) * 2) 0 var(--spacing-small) 0; |
37 | | - color: var(--page-background-color); |
38 | | - user-select: none; |
39 | | -} |
40 | | - |
41 | | -.next_section_button::after, |
42 | | -.previous_section_button::after { |
43 | | - /* clearfix */ |
44 | | - content: ""; |
45 | | - clear: both; |
46 | | - display: table; |
47 | | -} |
48 | | - |
49 | | -.next_section_button a, |
50 | | -.previous_section_button a { |
51 | | - overflow: hidden; |
52 | | - float: right; |
53 | | - border: 1px solid var(--separator-color); |
54 | | - padding: var(--spacing-medium) calc(var(--spacing-large) / 2) var(--spacing-medium) var(--spacing-large); |
55 | | - border-radius: var(--border-radius-medium); |
56 | | - color: var(--page-secondary-foreground-color) !important; |
57 | | - text-decoration: none; |
58 | | - background-color: var(--page-background-color); |
59 | | - transition: color .08s ease-in-out, background-color .1s ease-in-out; |
60 | | -} |
61 | | - |
62 | | -.previous_section_button a { |
63 | | - float: left; |
64 | | - padding: var(--spacing-medium) var(--spacing-large) var(--spacing-medium) calc(var(--spacing-large) / 2); |
65 | | -} |
66 | | - |
67 | | -@media screen and (max-width: 500px) { |
68 | | - .section_buttons .next_section_button, .section_buttons .next_section_button a, |
69 | | - .section_buttons .previous_section_button, .section_buttons .previous_section_button a { |
70 | | - width: 100%; |
71 | | - box-sizing: border-box; |
72 | | - white-space: nowrap; |
73 | | - overflow: hidden; |
74 | | - text-overflow: ellipsis; |
75 | | - } |
76 | | - |
77 | | - .section_buttons .next_section_button a { |
78 | | - border-radius: 0 var(--border-radius-medium) var(--border-radius-medium) 0; |
79 | | - text-align: right; |
80 | | - } |
81 | | - |
82 | | - .section_buttons .previous_section_button a { |
83 | | - border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium); |
84 | | - border-right: none; |
85 | | - } |
86 | | -} |
87 | | - |
88 | | -.next_section_button a:hover, |
89 | | -.previous_section_button a:hover { |
90 | | - color: var(--page-foreground-color) !important; |
91 | | - background-color: var(--odd-color); |
92 | | -} |
93 | | - |
94 | | -.next_section_button a::after, |
95 | | -.previous_section_button a::before { |
96 | | - color: var(--page-secondary-foreground-color) !important; |
97 | | - display: inline-block; |
98 | | - transition: color .08s ease-in-out, transform .09s ease-in-out; |
99 | | -} |
100 | | - |
101 | | -.next_section_button a::after { |
102 | | - content: '〉'; |
103 | | - padding-left: var(--spacing-large); |
104 | | -} |
105 | | - |
106 | | -.previous_section_button a::before { |
107 | | - content: '〈'; |
108 | | - padding-right: var(--spacing-large); |
109 | | -} |
110 | | - |
111 | | -.next_section_button a:hover::after { |
112 | | - color: var(--page-foreground-color) !important; |
113 | | - transform: translateX(3px); |
114 | | -} |
115 | | - |
116 | | -.previous_section_button a:hover::before { |
117 | | - color: var(--page-foreground-color) !important; |
118 | | - transform: translateX(-3px); |
119 | | -} |
120 | | - |
121 | 28 | .alter-theme-button:hover { |
122 | 29 | background: var(--primary-dark-color); |
123 | 30 | } |
|
0 commit comments