-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
221 lines (178 loc) · 3.4 KB
/
styles.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
210
211
212
213
214
215
216
217
218
219
220
221
/* Universal Styling */
* {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.row {
display: flex;
flex-wrap: wrap;
}
.container {
display: flex;
justify-content: center;
/* Center the columns horizontally */
gap: 10px;
/* Gap between columns */
margin: 10px;
/* Margin around the container */
max-width: 100%;
/* Ensure the container does not exceed the viewport width */
}
.column {
flex: 1;
/* Each column takes up an equal amount of space */
padding: 10px;
/* Optional: Add some padding inside the columns */
box-sizing: border-box;
/* Include padding in the column's total width */
}
.left {
flex: 1;
justify-content: flex-start;
}
.right {
justify-content: flex-end;
}
body {
min-width: 480px;
height: 100%;
}
/* Header & Navigation */
header button {
background-color: rgb(10, 53, 171);
color: white;
padding: 3px;
border-radius: 2px;
border: rgb(1, 9, 30) .1px solid;
transition: box-shadow 0.3s ease;
}
header button:hover {
box-shadow: 0 0 5px rgba(10, 53, 171, 0.5);
cursor: pointer;
transform: translateY(+2px);
font-size: .7rem;
}
.intro {
width: 60%;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
}
header h4 {
font-weight: lighter;
padding-bottom: 70px;
;
}
.textonimage {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 200px;
width: 100%;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li:hover {
cursor: pointer;
transform: translateY(-2px);
font-weight: bolder;
font-size: .8rem;
}
nav ul li,
button {
display: inline-block;
font-size: .7rem;
}
nav ul li a {
color: rgb(0, 0, 0);
text-decoration: none;
padding: 0 10px;
}
#homeSubTag {
text-align: center;
}
/* Cards */
.card {
width: 100%;
margin: 2px;
border: lightslategray 1px solid;
border-radius: 5px;
padding: 10px;
font-size: .7rem;
}
.card,
a {
color: rgb(0, 0, 0);
text-decoration: none;
}
.card:hover {
box-shadow: 0 3px 5px rgba(193, 199, 220, 0.3);
/* Light shadow */
transform: translateY(-3px);
/* Lift the element by 3 pixels */
}
/* Calculator Styling */
.calculatorcontainer {
background: whitesmoke;
border: lightslategray .1px solid;
box-shadow: 0 0 5px rgba(10, 53, 171, 0.2);
border-radius: 5px;
padding: 5px;
font-size: .7rem;
overflow: hidden;
}
.calculatorcontainer a {
text-decoration: underline;
}
.calcrow {
display: flex;
justify-content: left;
margin-bottom: 10px;
}
.formfield {
margin: 10px 10px 10px 0px;
padding: 5px;
}
#convert_strengthVolNum {
width: 55px;
}
#convert_per {
margin: 3px;
}
#convert_mL {
margin: 3px;
}
.result {
margin: 5px;
padding: 5px;
font-size: 1.25em;
font-weight: bold;
}
.calculatorcontainer button {
font-size: 1rem;
}
h5 {
margin-top: 10px;
margin-bottom: 2px;
font-size: .7rem;
margin-left: 0px;
padding-left: 0px;
}
.calculatorcontainer,
li {
padding-left: 5px;
}
#budLabel {
padding: 6px;
font-weight: bolder;
}
img {
width: 100%;
border-radius: 20px;
margin-top: 30px;
}
.decoratelink {
text-decoration: underline;
}