-
Notifications
You must be signed in to change notification settings - Fork 3
/
responsive.css
130 lines (109 loc) · 2.72 KB
/
responsive.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
/* @media only screen and (min-width : 2080px) {
.container {
max-width: 1800px;
max-width: calc(100% - 60rem);
}
} */
@media screen and (max-width : 900px) {
.nav-links {
position: absolute;
background-color: var(--accent-color);
width: 100%;
height: 0;
overflow: hidden;
top: 4.5rem;
left: 0;
right: 0;
display: flex;
align-content: center;
justify-content: center;
opacity: 0;
/* box-shadow: 0 10px 7px -10px var(--shadow-color); */
box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
transition: all 0.5s cubic-bezier(0.23, -0.18, 0.38, 0.68);
}
.nav-links.open {
height: 300px;
opacity: 1;
}
.nav-links ul {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
#checkbox {
right: 50px;
}
.ham-icon {
display: flex;
align-items: center;
justify-content: center;
width: 25px;
}
}
@media screen and (max-width : 680px) {
.card {
max-width: 350px;
}
.card-header img {
max-width: 100%;
min-height: auto;
max-height: 200px;
}
}
@media screen and (max-width : 540px) {
.logo img {
max-width: 100px;
}
.search-bar {
position: absolute;
top: 4.5rem;
left: 0;
background-color: var(--accent-color);
width: 100%;
height: 54px;
display: flex;
justify-content: center;
align-items: center;
border-top: 2px solid #4242426e;
/* box-shadow: 0 10px 7px -10px var(--shadow-color); */
box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
/* box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px; */
}
.news-input {
height: 35px;
}
.search-bar .search-btn {
font-size: 0;
height: 35px;
}
.search-btn i {
display: block;
font-size: 1rem;
}
#bars {
transition: all 0.3s;
}
main {
margin-top: 100px;
}
.card {
min-width: auto;
min-height: 450px;
}
.card-header img {
height: auto;
}
#news-title {
font-size: 1rem;
}
#news-source {
font-size: 0.6rem;
}
#news-desc {
font-size: 0.9rem;
}
}