-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
246 lines (205 loc) · 5.15 KB
/
style.scss
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
/* Professional and trustworthy styles */
/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */
@tailwind base;
//@tailwind components;
@tailwind utilities;
.subtext li {
color: black;
}
/* ################################## */
/* Global vars */
/* ################################## */
$primary: #2C3E50; // Dark Blue
$secondary: #3498DB; // Light Blue
$accent: #E74C3C; // Red
$background: #ECF0F1; // Light Gray
$text: #3498DB; // Light Blue
$subtext: #3498DB; // Light Blue
$shadow: 0 4px 6px rgba(0, 0, 0, 0.1); // box shadow
$pearl: #F0EAD6; // Define the pearl color
$font-family-sans: 'Roboto', sans-serif; // font
$border-color: #BDC3C7; // Gray
$border-width: 1px;
$border-radius: 4px;
// Animation Speeds
$transition-duration-fast: 150ms;
$transition-duration-medium: 300ms;
$transition-duration-slow: 500ms;
// Paddings
$padding-sm: .5rem;
$padding-md: 1rem;
$padding-lg: 2rem;
@mixin subtext {
color: $subtext;
font-style: italic;
}
/* ################################## */
/* Tag Styles */
/* ################################## */
/*
html {
// causing weird scroll behavior on mobile
// stops before the end of the page
// disabling for now
overscroll-behavior: none;
}
*/
body {
font-family: $font-family-sans;
background-color: $background;
color: $text;
@apply w-screen h-screen;
//overscroll-behavior: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family-sans;
color: $primary;
@apply font-bold text-secondary;
}
h1 {
font-size: 1.5rem;
}
.text-lg {
font-size: 1.5rem;
}
button {
font-family: $font-family-sans;
background-color: $primary;
color: #FFFFFF; // White text
padding: $padding-sm $padding-md;
border-radius: $border-radius;
border: $border-width solid $border-color;
transition: background-color $transition-duration-medium;
&:hover {
background-color: $secondary;
}
}
p {
color: $text;
}
/* ################################## */
/* Class styles */
/* ################################## */
.main,
.main-right,
.main-left {
box-shadow: $shadow;
}
.main-left,
.main-right {
background-color: $primary;
border-color: $border-color;
border-width: $border-width;
border-radius: $border-radius;
padding: $padding-sm;
animation: moveBackground 20s ease-in-out infinite;
@keyframes moveBackground {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
opacity: 0.95; // Subtle transparency
}
.main {
background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
linear-gradient(225deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
linear-gradient(315deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
background-position: 10px 0, 10px 0, 0 0, 0 0;
background-size: 20px 20px;
background-color: $secondary; // Fallback color
border-color: $border-color;
border-width: $border-width;
border-radius: $border-radius;
padding: $padding-sm;
background-image: linear-gradient(135deg, #ECF0F1 25%, transparent 25%),
linear-gradient(225deg, #ECF0F1 25%, transparent 25%),
linear-gradient(45deg, #ECF0F1 25%, transparent 25%),
linear-gradient(315deg, #ECF0F1 25%, #3498DB 25%);
background-position: 10px 0, 10px 0, 0 0, 0 0;
background-size: 20px 20px;
background-color: $secondary; // Fallback color
animation: moveBackground 20s ease-in-out infinite;
opacity: 0.95; // Subtle transparency
/*@apply w-screen h-screen grid grid-cols-1 md:grid-cols-3 gap-2 p-2 border-2;*/
@apply w-screen h-screen flex flex-col md:flex-row gap-2 p-2 border-2;
}
.main-left {
//@apply grid grid-rows-5 col-span-1 md:col-span-1 h-full border-2 flex justify-center;
@apply flex-1 flex flex-col md:col-span-1 h-full border-2 gap-4 pb-4;
.hello {
@apply flex items-center justify-center;
h1 {
@apply text-8xl font-bold text-secondary;
}
}
.photo {
@apply ml-auto mr-auto w-1/2
}
.bullet {
@apply row-span-1 flex items-center justify-center;
}
.about-me {
@apply row-span-1 flex items-center justify-center;
.about-list {
@apply w-3/5;
ul {
@apply list-none;
@include subtext;
li {
@apply flex items-center;
img {
@apply w-2 mr-2;
}
}
}
}
}
.links-and-location {
@apply row-span-1 flex items-center justify-center;
div {
@apply w-3/5;
div {
@apply flex items-center w-full;
img {
@apply w-2 mr-2 inline-block w-4;
}
p{
@apply flex-1;
}
}
}
}
}
.main-right {
//@apply flex-1 col-span-1 md:col-span-2 h-full border-2 flex justify-center;
h1 {
@apply inline-block text-8xl font-bold text-secondary;
}
}
/* ################################## */
/* General utility styles */
/* ################################## */
.heading-xl {
font-size: 2.5rem;
font-family: $font-family-sans;
color: $pearl; // Use the pearl color
}
.text-secondary {
color: $secondary;
}
.location-and-links {
color: $text;
}