-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
209 lines (172 loc) · 5.05 KB
/
style.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
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
body {
line-height: 1.6; /* without metric, multiplier of current font size */
background-color: #ffffff;
background-position: center;
display: grid;
grid-template-rows: auto 1fr auto; /* header, main, footer (1fr is 1 fraction) */
gap: 0px; /* spacing between grid items */
overflow: hidden; /* prevent scrolling on desktop */
min-height: 100vh;
padding: 0%;
margin: 0%;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
}
@media (max-width: 768px) {
body {
overflow: auto; /* enable scrolling when width is smaller than 768px */
}
}
/*---------------------------------------------------------------------*/
/*starts the header section */
header {
padding: 0%; /*padding around grid item*/
text-align: center;
background-color: #ffffff;
border-bottom: 4px dashed #000000;
margin-top: -10px;
margin-left: -10px;
margin-right: -10px;
align-items: center; /* centers items vertically in section */
display: flex;
justify-content: space-between; /* space between divs */
}
nav { /*navigation links in header*/
text-align: right;
text-transform: lowercase;
font-weight: bold;
padding-top: 10px;
padding-right: 20px;
}
.nav:hover {
background-color: #000000;
}
#home-button { /*home button in nav */
border: none;
background-color: transparent;
font-weight: bold;
}
#home-button:hover {
background-color: #000000;
}
#contact-form {
display: none; /* keeps contact form hidden before clicking contact button */
}
#show-contact-form { /*contact button in nav */
border: none;
background-color: transparent;
font-weight: bold;
}
#show-contact-form:hover {
background-color: #000000;
}
#toggle-colors { /*sun icon to toggle between light/dark mode in nav */
border: none;
background-color: transparent;
font-size: larger;
}
.logo { /* logo top left in heading */
padding: 0px 0px 0px 30px;
max-width: 400px;
text-align: left;
}
/*-----------------------------------------------------------------------*/
a { /*general all links */
color: #000000;
text-decoration: none;
padding-inline: 5px;
}
h3 { /* about me & jasmine is my life titles / section titles */
font-style: bold;
font-size: calc(1.2rem + 0.5vw);
margin: 4px;
}
h2 { /*logo top left & page titles */
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
font-size: 4cqw;
margin: 4px;
}
p { /*general all paragraphs */
font-size: 0.7;
font-family: Arial, Helvetica, sans-serif;
}
/* ---------------------------------------------------------------*/
/*starts the about me row aka main section*/
main {
background: url("beethatIdrew.png") no-repeat;
background-color: #ffffff;
background-size: 100px; /* changes size of the bee */
background-position: center; /* changes position of the bee */
align-content: center; /*aligns elements vertically*/
}
.text-content, .traits-text { /*about me section */
align-items: center; /* centers items vertically in section */
max-width: 400px;
display: flex;
flex-wrap: wrap;
justify-content: left; /* centers items horizontally */
text-align: left;
padding: 5px 5px 5px 60px; /*top right bottom left*/
background-color: transparent;
}
/* ---------------------------------------------------------------*/
/*starts the footer section */
footer {
font-size: 0.9em;
border-top: 4px dashed #000000;
background-color: #ffffff;
margin-bottom: -10px;
margin-left: -10px;
margin-right: -10px;
align-items: center; /* centers items vertically in section */
}
footer .contact { /*settings for the social icons */
display: flex;
justify-content: flex-end;
padding: 10px 20px 10px 30px;
}
.footer { /*entire footer div that includes separate author & socials divs */
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: right;
}
/*---------------------------------------------------------------------*/
/* invert colors css from the js */
.invert-colors {
filter: invert(1) hue-rotate(180deg);
}
/*two objects below are for transition js of the about & traits sections*/
.hidden {
opacity: 0;
transform: translateY(20px); /* slightly moves down */
transition: opacity 0.8s ease, transform 0.8s ease; /* slowly transition */
}
.visible {
opacity: 1;
transform: translateY(0); /* resets to original position */
}
/*---------------------------------------------------------*/
/*starts contact form css */
#contact-form {
padding-left: 30px;
max-width: 200px;
}
#submit {
border: 1px solid #ff0099;
color: #000000;
background-color: #ffffff;
}
#submit:hover {
background-color: #000000;
}
#message {
border: 2px solid #ff0099;
}
#email {
border: 2px solid #ff0099;
}
#name {
border: 2px solid #ff0099;
}