styles.css
323 lines · 7872 bytes
1
2/*****************************************************/
3/******* CSS VARIABLES FOR COLORS AND SETTINGS *******/
4/*****************************************************/
5:root {
6 --primary: #15171b;
7 --primary-2: #1d1e26;
8 --cover-text-color: #9580ff;
9 --shadow-color: #00000033;
10}
11
12::selection {
13 background: var(--cover-text-color);
14 color: var(--primary);
15}
16
17/*****************************************************/
18/******* OVERIDE DOCSIFY ELEMENTS - COVER-PAGE *******/
19/*****************************************************/
20
21.cover-main {
22 height: 100vh;
23 display: flex;
24 align-items: center;
25 flex-direction: column;
26}
27
28section.cover.show {
29 background: var(--primary);
30 background: linear-gradient(
31 135deg,
32 var(--primary) 15%,
33 var(--primary-2) 15%,
34 var(--primary-2) 50%,
35 var(--primary-2) 85%,
36 var(--primary) 85%) !important;
37}
38
39@media (max-width: 820px) {
40 section.cover.show {
41 height: auto !important;
42 }
43}
44
45/***************************************************/
46/******* OVERIDE DOCSIFY ELEMENTS - SIDE BAR *******/
47/***************************************************/
48
49.app-name-link img {
50 max-width: 140px !important;
51}
52
53/******************************************************/
54/******* OVERIDE DOCSIFY ELEMENTS - TOP NAV BAR *******/
55/******************************************************/
56
57nav.app-nav {
58 width: calc(100% - 300px);
59 right: 1rem !important;
60}
61
62nav.app-nav li {
63 padding: 0 !important;
64 display: inline-block !important;
65 margin: 0 0.3rem 1rem 0 !important;
66}
67
68nav.app-nav a {
69 background: none;
70 box-sizing: border-box;
71 padding: 0.3rem;
72 border: 2px solid var(--primary);
73 border-radius: 3px;
74}
75
76nav.app-nav a.active, nav.app-nav a:active, nav.app-nav a:hover {
77 background: var(--primary) !important;
78 color: var(--cover-text-color);
79}
80
81@media (max-width: 820px) {
82 nav.app-nav { display: none; }
83}
84
85a.github-corner {
86 max-width: 80px;
87}
88
89a.github-corner svg { fill: var(--primary) !important; }
90a.github-corner svg path.octo-body,
91a.github-corner svg path.octo-arm { fill: var(--cover-text-color) !important; }
92
93/********************************************/
94/******* CUSTOM ELEMENTS - COVER-PAGE *******/
95/********************************************/
96
97/* Container, for cover page elements */
98.cover-page {
99 max-width: 1000px !important;
100 margin: 3rem auto !important;
101}
102
103/* Main Image for Cover Page */
104img.cover-image {
105 width: 200px;
106 height: 200px;
107}
108
109/* Main Heading */
110.cover-page h1{
111 font-family: 'Cutive Mono', monospace;
112 color: var(--cover-text-color) !important;
113 font-size: 4rem !important;
114 margin: 1rem auto !important;
115}
116
117/* Sub-Heading */
118.cover-page h2{
119 font-family: 'Cutive Mono', monospace;
120 color: var(--cover-text-color) !important;
121 font-size: 1.8rem !important;
122 margin: 1rem auto !important;
123 font-weight: 400;
124}
125
126/* Container for the Button links, within cover page*/
127.cover-page .cover-link-container {
128 display: grid;
129 grid-template-columns: repeat(4, 1fr);
130}
131
132/* Mobile- Container for the Button links, within cover page*/
133@media (max-width: 820px) {
134 .cover-page .cover-link-container {
135 display: flex;
136 flex-wrap: wrap;
137 justify-content: center;
138 align-items: stretch;
139 flex-direction: column;
140 display: none;
141 }
142}
143
144/* Link button (Navigates to main sections) */
145.cover-page .cover-link-container .cover-link {
146 background: var(--primary);
147 display: flex;
148 flex-direction: column;
149 border: 2px solid var(--cover-text-color);
150 margin: 0.5rem;
151 padding: 0.5rem;
152 border-radius: 3px;
153}
154
155/* Main text within Button on cover page*/
156.cover-page .cover-link-container .cover-link .link-title {
157 font-family: 'Cutive Mono', monospace;
158 color: var(--cover-text-color);
159 font-size: 1.2rem;
160 z-index: 1;
161 text-shadow:
162 0 0 1px var(--shadow-color),
163 0 1px 0 var(--shadow-color);
164}
165
166/* Description of button, on cover page */
167.cover-page .cover-link-container .cover-link .link-description {
168 font-family: 'Cutive Mono', monospace;
169 color: var(--cover-text-color);
170 font-size: 0.8rem;
171 border-top: 1px solid var(--cover-text-color);
172 padding-top: 2px;
173 z-index: 1;
174}
175
176/* View on GitHub button*/
177.github-button {
178 font-family: 'Cutive Mono', monospace;
179 color: var(--cover-text-color) !important;
180 font-size: 2rem;
181 margin-top: 1rem;
182 display: block;
183 margin: 1rem auto;
184 border: 2px solid var(--cover-text-color);
185 border-radius: 3px;
186 background: var(--primary);
187 padding: 0.2rem 0;
188}
189
190/* GitHub Star Button */
191.github-star {
192 position: absolute;
193 top: 1.5rem;
194 right: 5rem;
195 width: 120px;
196 opacity: 0.8;
197}
198
199@media (max-width: 820px) {
200 .github-star {
201 left: 0.5rem;
202 width: 85px;
203 }
204}
205
206/* Awesome list button */
207.awesome-list {
208 position: absolute;
209 top: 1.5rem;
210 right: 13rem;
211 width: 120px;
212 opacity: 0.8;
213}
214
215.awesome-list img {
216 width: 8rem;
217}
218
219@media (max-width: 820px) {
220 .awesome-list {
221 left: 0.5rem;
222 top: 3.25rem;
223 width: 85px;
224 }
225}
226
227/* License Text */
228footer.license {
229 position: absolute;
230 right: 0;
231 left: 0;
232 bottom: 0.2rem;
233}
234@media (max-width: 820px) {
235 footer.license {
236 position: relative;
237 }
238}
239footer.license span {
240 color: var(--cover-text-color);
241 opacity: 0.5;
242 bottom: 0;
243 display: block;
244 cursor: default;
245 margin-top: 2%;
246 transition: all 0.75s ease 0s;
247}
248footer.license span:hover {
249 opacity: 0.95;
250}
251footer.license span a{
252 text-decoration: underline;
253}
254
255/* Animated Action Buttons */
256a.cover-link:link, a.cover-link:visited {
257 text-shadow: 0 0 1px var(--shadow-color), 0 1px 0 var(--shadow-color);
258 -webkit-transition: all 1s ease;
259 -moz-transition: all 1s ease;
260 -o-transition: all 1s ease;
261 transition: all 1s ease;
262}
263a.cover-link:link:after, a.cover-link:visited:after {
264 content: "";
265 position: absolute;
266 height: 0%;
267 left: 50%;
268 top: 50%;
269 width: 150%;
270 -webkit-transition: all 0.75s ease 0s;
271 -moz-transition: all 0.75s ease 0s;
272 -o-transition: all 0.75s ease 0s;
273 transition: all 0.75s ease 0s;
274}
275a.cover-link:link:hover:after, a.cover-link:visited:hover:after {
276 height: 450%;
277}
278a.cover-link:link, a.cover-link:visited {
279 position: relative;
280 overflow: hidden;
281 -webkit-transition: all 1s ease;
282 -moz-transition: all 1s ease;
283 -o-transition: all 1s ease;
284 transition: all 1s ease;
285}
286a.cover-link:after {
287 background: var(--cover-text-color);
288 -moz-transform: translateX(-50%) translateY(-50%) rotate(135deg);
289 -ms-transform: translateX(-50%) translateY(-50%) rotate(135deg);
290 -webkit-transform: translateX(-50%) translateY(-50%) rotate(135deg);
291 transform: translateX(-50%) translateY(-50%) rotate(135deg);
292}
293
294a.cover-link span {
295 mix-blend-mode: difference;
296}
297
298
299/******************************************************/
300/***************** NEW VERSION BANNER *****************/
301/******************************************************/
302
303.new-version {
304 position: fixed;
305 bottom: 0.5rem;
306 right: 0.5rem;
307 z-index: 1;
308 width: fit-content;
309 margin: 0.25rem;
310 padding: 0.5rem 1rem;
311 background: #060b2b;
312 color: white;
313 border-radius: 10px;
314 font-size: 1.6rem;
315 font-family: 'Cutive Mono', monospace;
316 border: 3px solid #9580ff;
317 opacity: 0.8;
318 text-decoration: none;
319}
320.new-version .link {
321 color: #9580ff !important;
322 font-weight: bold;
323}