Skip to content

Commit a1078ea

Browse files
author
hafidz
committed
updates flexbox styles
1 parent 34d66a6 commit a1078ea

File tree

1 file changed

+74
-5
lines changed

1 file changed

+74
-5
lines changed

client/src/styles/components.css

+74-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,69 @@
1+
html {
2+
box-sizing: border-box;
3+
}
4+
15
body {
26
font-family: Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
37
}
48

9+
/***** Navbar ******/
10+
/* 1st Flex Container */
11+
.flex-nav {
12+
display: flex;
13+
margin: 0;
14+
padding: 0;
15+
height: 50px;
16+
align-items: stretch;
17+
justify-content: center;
18+
}
19+
20+
/* 1st Flex Items */
21+
.flex-nav li {
22+
list-style: none;
23+
flex: 0 1 100px;
24+
text-align: center;
25+
display: flex; /* 2nd flex Container */
26+
}
27+
28+
/* 2nd Flex Items */
29+
.flex-nav a {
30+
flex: 1 1 100%;
31+
display: flex; /* 3rd Flex Container */
32+
align-items: center;
33+
}
34+
35+
/* 3rd Flex Items */
36+
.flex-nav span {
37+
display: block;
38+
flex: 1 1 100%;
39+
}
40+
41+
.flex-nav .activenav {
42+
font-weight: bold;
43+
}
44+
45+
/***** Home ******/
46+
/* Flex Container */
47+
.home {
48+
display: flex;
49+
flex-direction: column;
50+
align-items: center;
51+
}
52+
53+
/* flex Items */
54+
.button {
55+
padding: 10px 100px;
56+
border-radius: 5px;
57+
background-color: #87b5ff;
58+
}
59+
60+
/**** Popular *****/
561
.languages {
662
display: flex;
763
justify-content: center;
864
margin: 0;
965
padding: 15px;
66+
background-color: #87b5ff;
1067
}
1168

1269
.languages button {
@@ -15,23 +72,28 @@ body {
1572
padding-left: 10px;
1673
}
1774

75+
/* Flex Ccontainer */
1876
.popular-list {
1977
display: flex;
2078
flex-wrap: wrap;
21-
justify-content: space-around;
22-
border: solid red 2px;
2379
padding: 0;
24-
margin: 0 auto;
2580
}
2681

82+
/* Flex Items */
2783
.popular-list li {
28-
list-style-type: none;
84+
list-style-type: none;
85+
margin: 10px;
86+
flex: 1 1 calc(20% - 20px);
87+
}
88+
89+
.active:hover {
90+
background-color: #667896;
2991
}
3092

3193
.popular-item {
3294
margin: 20px;
3395
text-align: center;
34-
border: solid blue 2px;
96+
background-color: #dcdee2;
3597
}
3698

3799
.popular-rank {
@@ -51,4 +113,11 @@ body {
51113

52114
.list-btn {
53115
margin: 0px 5px;
116+
}
117+
118+
.loading {
119+
font-size: 30px;
120+
display: flex;
121+
justify-content: center;
122+
margin: 200px auto;
54123
}

0 commit comments

Comments
 (0)