Skip to content

Commit c11e12f

Browse files
committed
code: added fluid design
1. added bootstrap fixed navbar which collapses menu for smaller screen resolutions 2. added container-fluid classes to scale with viewport and made some color and CSS changes 3. cleaned up code and alignment for HTML tags 4. added comments for HTML tags, replaced huge share URL links with Google shortened URLs for better readability Signed-off-by: nj2237 <[email protected]>
1 parent 04faf00 commit c11e12f

File tree

2 files changed

+163
-114
lines changed

2 files changed

+163
-114
lines changed

code/css/popup.css

Lines changed: 68 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
html,body
2-
{
1+
html,body {
32
width: 100%;
43
height: 100%;
54
margin: 0px;
@@ -8,10 +7,63 @@ html,body
87
position:absolute;
98

109
}
10+
1111
body {
1212

1313
font-family: 'Roboto Mono', monospace;
1414
}
15+
16+
#theNavBar {
17+
background-color: white;
18+
border-bottom: 1px solid gray;
19+
}
20+
21+
.navbar-brand>img {
22+
height: 5%;
23+
width: auto;
24+
}
25+
26+
.navbar-expand-md .navbar-toggler {
27+
background-color: #FEF200;
28+
margin-right: 2%;
29+
}
30+
31+
.nav-item {
32+
text-align: center;
33+
}
34+
35+
#topNavBar > li > a {
36+
color: gray;
37+
font-weight: bold;
38+
}
39+
40+
#topNavBar > li > a:hover {
41+
color: #333;
42+
border: 0.75px solid #555;
43+
border-radius: 3.7px;
44+
background-color: #FEF200;
45+
}
46+
47+
.dropdown_button {
48+
background-color: transparent;
49+
background-repeat:no-repeat;
50+
border: none;
51+
cursor:pointer;
52+
overflow: hidden;
53+
outline:none;
54+
color: gray;
55+
}
56+
57+
#pop-tags {
58+
text-align: center;
59+
}
60+
61+
#jumbo {
62+
background-color: #ffffaa;
63+
width: 95%;
64+
margin: auto;
65+
}
66+
1567
article {
1668
display: block;
1769
text-align: left;
@@ -37,13 +89,12 @@ footer {
3789
text-align: center;
3890
}
3991

40-
.sortbythis:hover
41-
{
92+
.sortbythis:hover {
4293
cursor: pointer;
4394
background-color: #ffc10757;
4495
}
4596

46-
#sortfavby{
97+
#sortfavby {
4798
background: none repeat scroll 0 0 #FFFFFF;
4899
border: 1px solid #E5E5E5;
49100
border-radius: 5px 5px 5px 5px;
@@ -54,21 +105,12 @@ padding: 10px;
54105
min-width: 120px;
55106
}
56107

57-
#favSearchInputBox
58-
{
108+
#favSearchInputBox {
59109
text-align: center;
60110
float:center;
61111
}
62112

63-
.navbar-brand {
64-
padding: 0px;
65-
}
66-
.navbar-brand>img {
67-
height: 10%;
68-
padding: 15px;
69-
width: auto;
70-
}
71-
.btn-xs{
113+
.btn-xs {
72114
margin-top: 7px;
73115
height: 24px;
74116
font-size: 12px;
@@ -152,6 +194,10 @@ form {
152194
background-color:#fff
153195
}
154196

197+
h1 {
198+
text-align: center;
199+
}
200+
155201
h2 {
156202
background-color:#fcee45;
157203
padding:20px 35px;
@@ -165,25 +211,14 @@ h4 {
165211
}
166212

167213
hr {
168-
margin:10px -50px;
169-
border:0;
170-
border-top:1px solid #ccc
214+
margin: 10px -50px;
215+
border: 0;
216+
border-top: 1px solid #ccc
171217
}
172218

173-
.dropdown_button
174-
{
175-
background-color: Transparent;
176-
background-repeat:no-repeat;
177-
border: none;
178-
cursor:pointer;
179-
overflow: hidden;
180-
outline:none;
181-
color: #077bff;
182-
}
183-
184-
ul.share-buttons{
219+
ul.share-buttons {
185220
list-style: none;
186-
padding: 0;
221+
padding-top: 5px;
187222
}
188223

189224
ul.share-buttons li{
@@ -226,7 +261,7 @@ ul.share-buttons .sr-only{
226261
padding: 5px;
227262
}
228263

229-
#share-footer{
264+
#share-footer {
230265
background-color:#FFFA79;
231266
margin:-2px -50px 0 -50px;
232267
text-align:center;

0 commit comments

Comments
 (0)