Skip to content

Commit f2a4878

Browse files
Update index.css
1 parent bcb33f6 commit f2a4878

File tree

1 file changed

+117
-1
lines changed

1 file changed

+117
-1
lines changed

projects/GFI-framework/static/css/index.css

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,123 @@ line-height: 1.2em;
106106
Helpers
107107
***************/
108108

109-
.centered {
109+
.no-border-top {
110+
border-top: 0;
111+
}
112+
.no-border-bottom {
113+
border-bottom: 0;
114+
}
115+
.border-right {
116+
border-right: 1px solid black;
117+
}
118+
.text-sm {
119+
font-size: 0.875rem;
120+
line-height: 1.25rem;
121+
}
122+
.centered {
110123
text-align: center;
111124
}
125+
.full-width {
126+
width: max(90vw, 100%);
127+
position: relative;
128+
left: calc(-45vw + 50%);
129+
}
130+
.banded {
131+
width: 100vw;
132+
position: relative;
133+
left: calc(-50vw + 50%);
134+
135+
padding: 1em;
136+
text-align: center;
137+
background-color: var(--nice-gray);
138+
}
112139

140+
/***************
141+
Figures
142+
***************/
143+
144+
145+
.figure-container {
146+
display: grid;
147+
grid-template-columns: 1fr 1fr;
148+
column-gap: 4px;
149+
row-gap: 4px;
150+
}
151+
152+
@media only screen and (max-width: 768px) {
153+
.figure-container {
154+
grid-template-columns: 1fr;
155+
}
156+
}
157+
158+
figure {
159+
margin: 0px;
160+
}
161+
162+
/* Makes <a> behave like it doesn't exist with regards to flexbox */
163+
figure > a {
164+
display: contents;
165+
}
166+
figure > a > img,figure > img {
167+
width: 100%;
168+
}
169+
figcaption {
170+
text-align: left;
171+
}
172+
173+
174+
/***************
175+
Pill Buttons
176+
***************/
177+
178+
179+
.pill-button {
180+
padding: 0.5em 1em;
181+
border-radius: 9999px;
182+
background-color: black;
183+
color: white;
184+
text-decoration: none;
185+
margin-right: 0.25em;
186+
white-space: nowrap;
187+
}
188+
189+
.pill-button > span {
190+
font-size: 1em;
191+
}
192+
193+
.pill-button > img {
194+
height: 1em;
195+
display: inline-block;
196+
transform:translate(0, 0.125em);
197+
}
198+
199+
/***************
200+
Dropdown
201+
***************/
202+
details {
203+
margin-top: 6px;
204+
display: inline-block;
205+
min-width: 16ch;
206+
text-align: center;
207+
padding: 4px 12px;
208+
position: relative;
209+
}
210+
details:hover {
211+
cursor: pointer;
212+
}
213+
214+
details > div.options {
215+
position: absolute;
216+
background: white;
217+
width: 100%;
218+
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
219+
border-radius: 4px;
220+
}
221+
222+
details > div.options > p {
223+
margin: 0;
224+
padding: 6px 2px;
225+
}
226+
details > div.options > p:hover {
227+
background-color: var(--nice-gray);
228+
}

0 commit comments

Comments
 (0)