-
Notifications
You must be signed in to change notification settings - Fork 0
/
explore.css
96 lines (83 loc) · 1.64 KB
/
explore.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
/* css related to explore.html page, currently only for search and navbar section */
/* header section css starts here */
.feed header {
border-bottom: 2px solid #eee;
}
/* header section css ends here */
/* search section css starts here */
.search {
display: flex;
padding: 0.5em;
position: relative;
align-items: center;
}
.search input {
background-color: rgba(154, 189, 209, 0.205);
border: none;
border-radius: 20px;
padding: 12px 0 12px 2.5em;
width: 80%;
margin-right: auto;
}
.search i:first-child {
position: absolute;
left: 1.1em;
color: rgba(90, 90, 90, 0.356);
}
.search i:last-child {
padding-right: 5px;
opacity: 0.7;
cursor: pointer;
position: relative;
}
.search i:last-child::after {
content: "";
position: absolute;
background-color: black;
height: 1.8rem;
width: 1.8rem;
opacity: 0;
border-radius: 50%;
top: -0.4rem;
left: -0.4rem;
}
.search i:last-child:hover::after {
opacity: 0.3;
}
/* search section css ends here */
/* navbar css starts here */
nav {
width: 100%;
font-size: 0.8rem;
display: flex;
justify-content: stretch;
align-items: stretch;
}
nav a {
position: relative;
flex: 1;
padding: 1em;
cursor: pointer;
text-align: center;
text-decoration: none;
font-weight: bold;
color: rgba(90, 90, 90, 0.719);
transition: background-color 100ms linear;
}
nav a:hover {
background-color: rgba(154, 189, 209, 0.1);
}
nav a.active {
color: black;
}
nav a.active::after {
content: "";
position: absolute;
width: 60%;
height: 0.3em;
background-color: var(--twitter-color);
bottom: 0;
left: 20%;
border-radius: 15px;
}
/* navbar css ends here */