forked from makersacademy/news-summary-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
132 lines (118 loc) · 2.09 KB
/
style.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
/* Base styles */
body {
margin: 0;
font-family: Arial, sans-serif;
font-size: 16px;
background-color: #f5f5f5;
}
/* Top navigation */
.topnav {
overflow: hidden;
background-color: #e9e9e9;
display: flex;
justify-content: center;
}
.topnav a {
float: left;
display: block;
color: black;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #2196f3;
color: white;
}
.topnav .search-container {
display: flex;
justify-content: center;
}
.topnav input[type="text"] {
padding: 6px;
margin-top: 8px;
margin-right: 10px;
font-size: 17px;
border: none;
border-radius: 14px;
}
.topnav .search-container button {
float: right;
padding: 6px 10px;
margin-top: 8px;
margin-right: 20px;
background: #ddd;
font-size: 17px;
border: none;
cursor: pointer;
border-radius: 10px;
}
.topnav .search-container button:hover {
background: #ccc;
}
@media screen and (max-width: 600px) {
.topnav .search-container {
float: none;
}
.topnav a,
.topnav input[type="text"],
.topnav .search-container button {
float: none;
display: block;
text-align: left;
width: 100%;
margin: 0;
padding: 14px;
}
.topnav input[type="text"] {
border: 1px solid #ccc;
}
}
/* Main container */
#main-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.story {
display: flex;
flex-direction: column;
align-items: center;
width: 25%;
margin: 16px;
text-align: center;
border: groove;
border-radius: 15px;
padding: 5px 5px 5px 5px;
}
.story img {
width: 100%;
height: auto;
border-radius: 15px;
margin-bottom: 16px;
}
.story a {
color: #333;
text-decoration: none;
font-size: 14px;
}
@media screen and (max-width: 600px) {
.topnav a,
.topnav input[type="text"] {
float: none;
display: block;
text-align: left;
width: 100%;
margin: 0;
padding: 14px;
}
.topnav input[type="text"] {
border: 1px solid #ccc;
}
}