Skip to content

Commit 07f6890

Browse files
refactored styles and added comments
1 parent efb8c79 commit 07f6890

File tree

2 files changed

+39
-30
lines changed

2 files changed

+39
-30
lines changed

dist/simple.css

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@
22
box-sizing: border-box;
33
}
44

5+
/*common styles */
56
:root {
67
--bg1: #012a4a;
78
--bg2: #013a63;
89
--bg3: #01497c;
910
--bg4: #014f86;
1011
--bg5: #2a6f97;
1112
--bg6: #61a5c2;
13+
--bg7: #eef3f5;
1214
}
1315
body {
1416
margin: 0;
1517
padding: 0;
16-
/* remove this if not needed*/
17-
background-color: #eef3f5;
1818
font-family: "Noto Sans", sans-serif;
1919
font-size: 1rem;
20-
line-height: 1.5rem;
21-
/* remove this if not needed*/
2220
}
21+
img {
22+
width: 100%;
23+
}
24+
/*common styles */
25+
26+
/*background styles */
2327
.bg1 {
2428
background-color: var(--bg1);
2529
}
@@ -38,6 +42,11 @@ body {
3842
.bg6 {
3943
background-color: var(--bg6);
4044
}
45+
.bg7 {
46+
background-color: var(--bg7);
47+
}
48+
/*background styles */
49+
/*utility styles */
4150
.p1 {
4251
padding: 4px;
4352
}
@@ -71,6 +80,30 @@ body {
7180
.txt-center {
7281
text-align: center;
7382
}
83+
.ht1 {
84+
height: 10vh;
85+
}
86+
.ht2 {
87+
height: 20vh;
88+
}
89+
.ht3 {
90+
height: 33.3vh;
91+
}
92+
.ht4 {
93+
height: 50vh;
94+
}
95+
.ht5 {
96+
height: 75vh;
97+
}
98+
.ht6 {
99+
height: 100vh;
100+
}
101+
102+
.txt-white {
103+
color: #fff;
104+
}
105+
/*utility styles */
106+
/*grid styles*/
74107
.container {
75108
max-width: 1440px;
76109
margin: 0 auto;
@@ -136,27 +169,6 @@ body {
136169
.col-12 {
137170
width: 100%;
138171
}
139-
.h1 {
140-
height: 10vh;
141-
}
142-
.h2 {
143-
height: 20vh;
144-
}
145-
.h3 {
146-
height: 33.3vh;
147-
}
148-
.h4 {
149-
height: 50vh;
150-
}
151-
.h5 {
152-
height: 75vh;
153-
}
154-
.h6 {
155-
height: 100vh;
156-
}
157-
img {
158-
width: 100%;
159-
}
160172

161173
[class*="col"] {
162174
position: relative;
@@ -166,10 +178,7 @@ img {
166178
z-index: 1;
167179
position: relative;
168180
}
169-
170-
.txt-white {
171-
color: #fff;
172-
}
181+
/*grid styles*/
173182

174183
/* responsive styles */
175184

flexboxgrid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
1010
</head>
1111

12-
<body>
12+
<body class="bg7">
1313
<div class="container-full">
1414
<div class="row">
1515
<div class="col-1 bg1 p10 txt-center">.col-1</div>

0 commit comments

Comments
 (0)