-
Notifications
You must be signed in to change notification settings - Fork 0
/
m8-old.css
164 lines (141 loc) · 3.14 KB
/
m8-old.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* m8.css - CSS for my website */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&family=JetBrains+Mono&family=Nunito&display=swap');
/* Define the accent color */
:root {
--accent: #aa86ee;
}
/* Adjust accent color based on color scheme preference */
@media (prefers-color-scheme: light) {
:root {
--accent: #6c61c5;
}
}
/* Apply styles to HTML and body */
html {
background-color: #222222;
background-attachment: fixed;
background-size: cover;
background-position: center;
}
body {
font-size: 20px;
font-family: 'Nunito', sans-serif;
font-weight: 500;
line-height: 1.8;
}
header, footer, main, nav, h1, h2, h3 {
color: #ffffff;
background: #272727;
}
/* Common styles for boxes and headers */
header, footer, main, nav, section h2, section h3 {
max-width: 600px;
margin: 50px auto;
padding: 20px 50px;
border: 5px solid var(--accent);
border-radius: 24px;
box-shadow: 0px 0px 9px 5px #00000054;
}
/* Adjust colors for light color scheme */
@media (prefers-color-scheme: light) {
html {
background: #ddd;
}
body, header, main, nav, h1, h2, h3 {
color: #272727;
background: #ddd;
}
}
/* Header styles */
header {
font-family: 'JetBrains Mono', monospace;
align-items: center;
gap: 10px;
padding: 40px 50px;
cursor: pointer;
display: grid;
grid-template-columns: auto 1fr;
}
/* Style for the avatar */
.avatar {
height: 150px;
width: auto;
border: 3px solid var(--accent);
border-radius: 24px;
box-shadow: 0px 0px 9px 5px #00000054;
}
header-text {
display: grid;
grid-template-rows: auto auto;
gap: 20px;
margin: 15px auto;
text-align: center;
}
header-text h1, header-text h2 {
margin: 0;
}
.avatar {
height: 150px;
border: 3px solid var(--accent);
border-radius: 24px;
box-shadow: 0px 0px 9px 5px #00000054;
}
header:after {
clear: both;
}
/* Responsive design */
@media (max-width: 527px) {
body {
font-size: 18px;
}
header {
display: flex;
flex-direction: column;
align-items: center;
padding: 5px;
}
.avatar {
margin-top: 20px;
}
.box {
padding: 25px;
}
}
/* Social links */
#socials {
font-size: 22px;
font-family: "JetBrains Mono", monospace;
text-align: center;
padding: 5px 50px;
}
/* Links and headings */
a {
color: var(--accent);
}
h1, h2, h3, .box h2, .box h3 {
text-align: center;
color: var(--accent);
line-height: 1;
font-family: 'JetBrains Mono', monospace;
}
/* Code and preformatted text */
code, pre {
font-family: "Source Code Pro", monospace;
}
.src {
overflow-x: auto;
margin: 0 6%;
}
/* Scrollbar styles */
* {
scrollbar-color: var(--accent) black;
scrollbar-width: thin;
}
*::-webkit-scrollbar {
background: black;
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-thumb {
background-color: var(--accent);
}