Skip to content

Commit 72156ed

Browse files
committed
reduced padding and margings to save space
1 parent d034af4 commit 72156ed

File tree

3 files changed

+49
-37
lines changed

3 files changed

+49
-37
lines changed

src/css/search.css

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,34 @@
1313
}
1414

1515
.search-input-landing {
16-
width: 800px;
16+
width: 1200px;
1717
padding: 2 2.25em;
18-
padding-right: 30rem;
18+
padding-right: 2rem;
19+
}
20+
21+
.sections-page .search-result-dropdown-menu {
22+
position: absolute;
23+
z-index: 100;
24+
display: block;
25+
left: 0;
26+
top: 100%;
27+
border-radius: 4px;
28+
/* margin: 6px 0 0; */
29+
margin-left: 0.75rem !important;
30+
margin-top: -6rem !important;
31+
padding: 0;
32+
text-align: left;
33+
height: auto;
34+
background: transparent;
35+
border: none;
36+
max-width: 600px;
37+
min-width: 500px;
38+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
1939
}
2040
}
2141

2242
.search-input-landing {
23-
padding-right: 6rem !important;
43+
padding-right: 4rem !important;
2444
background-color: var(--color-smoke-70);
2545
box-shadow: rgba(0, 0, 0, 0.24) 1px 3px 8px;
2646
}
@@ -50,6 +70,10 @@
5070
#search-input {
5171
width: 200px;
5272
}
73+
74+
/* .sections-page .search-result-dropdown-menu {
75+
margin-top: -1rem !important;
76+
} */
5377
}
5478

5579
.search-result-dropdown-menu {
@@ -72,26 +96,6 @@
7296
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
7397
}
7498

75-
.sections-page .search-result-dropdown-menu {
76-
position: absolute;
77-
z-index: 100;
78-
display: block;
79-
left: 0;
80-
top: 100%;
81-
border-radius: 4px;
82-
/* margin: 6px 0 0; */
83-
margin-left: 0.75rem !important;
84-
margin-top: -3rem !important;
85-
padding: 0;
86-
text-align: left;
87-
height: auto;
88-
background: transparent;
89-
border: none;
90-
max-width: 600px;
91-
min-width: 500px;
92-
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
93-
}
94-
9599
@media screen and (max-width: 768px) {
96100
.navbar-brand .navbar-item + .navbar-item {
97101
padding-left: 0;
@@ -105,7 +109,10 @@
105109
.search-input-landing {
106110
width: 800px;
107111
padding: 2 2.25em;
108-
padding-right: 30rem;
112+
}
113+
114+
.sections-page .search-result-dropdown-menu {
115+
margin-top: -6rem !important;
109116
}
110117
}
111118

src/css/sections-header.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ html.is-clipped--navbar {
44

55
.sections-header {
66
border-bottom: 0.1rem solid var(--nav-border-color);
7-
padding-bottom: 0.75rem !important;
7+
padding-bottom: 0.25rem !important;
88
margin-top: -3rem;
9-
margin-bottom: 1.25rem;
9+
margin-bottom: 0.25rem;
1010
}
1111

1212
.sections-navbar {

src/css/sections.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
position: relative;
1414
float: left;
1515
width: 100%;
16-
grid-gap: 2rem;
16+
/* grid-gap: 2rem; */
1717
flex-wrap: wrap;
1818
/* background-color: #496583; */
1919
}
@@ -51,6 +51,11 @@
5151

5252
/* Tiles to sections css */
5353

54+
.sectionPurple .innerTile,
55+
.sectionBlue .innerTile {
56+
margin-top: 0.5rem !important;
57+
}
58+
5459
.innerTile > .content {
5560
background: transparent !important;
5661
border: 6px solid var(--color-white) !important;
@@ -59,7 +64,7 @@
5964
}
6065

6166
.innerTile > div > div.imageblock.xref-page > div > a > img {
62-
margin: 2rem 0.25rem !important;
67+
margin: 1rem 0.25rem !important;
6368
}
6469

6570
.innerTile > .content > .title {
@@ -72,10 +77,10 @@
7277
background-color: white;
7378
width: 100%;
7479
padding: unset;
75-
padding-top: 1rem;
76-
padding-bottom: 1rem;
80+
/* padding-top: 1rem; */
81+
padding-bottom: 0.5rem;
7782
position: relative;
78-
height: 40vh;
83+
height: 20rem;
7984
}
8085

8186
.sectionWhite > .content {
@@ -106,15 +111,15 @@
106111
}
107112

108113
.sectionWhite-heading {
109-
font-size: 2.8rem;
114+
font-size: 2.25rem;
110115
font-weight: bold;
111116
color: #496583;
112117
padding: 1.2rem 0.1rem;
113118
word-break: keep-all;
114119
}
115120

116121
.sectionWhite-heading-blue {
117-
font-size: 2.2rem;
122+
font-size: 2rem;
118123
font-weight: bold;
119124
color: #2945a3;
120125
padding: 1.2rem 0.1rem;
@@ -125,7 +130,7 @@
125130
background-color: white;
126131
color: #2945a3;
127132
padding: 0.75rem 7rem;
128-
margin-top: 0.5rem;
133+
margin-top: 1rem;
129134
border: none;
130135
box-shadow: rgba(0, 0, 0, 0.24) 1px 3px 8px;
131136
font-size: 1rem;
@@ -147,7 +152,7 @@
147152
width: 100%;
148153
grid-gap: 2rem;
149154
flex-wrap: wrap;
150-
height: 52vh;
155+
height: 23rem;
151156
}
152157

153158
.sectionBlue > .tile {
@@ -188,7 +193,7 @@
188193
width: 100%;
189194
grid-gap: 2rem;
190195
flex-wrap: wrap;
191-
height: 52vh;
196+
height: 23rem;
192197
}
193198

194199
.sectionPurple > .tile {
@@ -287,7 +292,7 @@
287292

288293
.get-started-button {
289294
padding: 0.5rem 4rem;
290-
font-size: 0.75rem;
295+
font-size: 0.5rem;
291296
}
292297

293298
.sectionWhite-heading-blue > p {

0 commit comments

Comments
 (0)