129 lines
2.5 KiB
CSS
129 lines
2.5 KiB
CSS
:root {
|
|
--color-green: #bada55;
|
|
--color-brown: #6b6659;
|
|
--color-tan: #cbcbba;
|
|
--color-black: #000;
|
|
--color-white: #fff;
|
|
--color-red: #b3151a;
|
|
--color-orange: #fa0;
|
|
--color-blue: #025d8c;
|
|
|
|
--gradient-green: linear-gradient(to bottom,
|
|
var(--color-green) 0%,
|
|
color(var(--color-green) shade(40%)) 100%);
|
|
--gradient-tan: linear-gradient(to bottom,
|
|
var(--color-tan) 0%,
|
|
color(var(--color-tan) shade(40%)) 100%);
|
|
|
|
--header-height: 6rem;
|
|
--content-margin: 2rem;
|
|
--spacing-margin: 1rem;
|
|
|
|
--list-separator-width: 2ex;
|
|
|
|
--control-gradient: var(--color-green) var(--gradient-green);
|
|
--select-height: 2.8rem;
|
|
--select-width: 12rem;
|
|
--select-separator-inset: 0.2rem;
|
|
}
|
|
|
|
.inline-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
& li {
|
|
list-style-type: none;
|
|
display: inline-block;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.with-separator-left {
|
|
overflow: hidden;
|
|
|
|
& li {
|
|
padding-right: var(--list-separator-width);
|
|
}
|
|
|
|
& li:before {
|
|
content: '//';
|
|
padding: 0 0.5rem;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
width: var(--list-separator-width);
|
|
margin-left: calc(-1 * var(--list-separator-width));
|
|
}
|
|
|
|
& li:last-child {
|
|
padding-right: 0;
|
|
}
|
|
|
|
& li:first-child:before {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
.with-separator-right {
|
|
overflow: hidden;
|
|
|
|
& li {
|
|
padding-left: var(--list-separator-width);
|
|
}
|
|
|
|
& li:after {
|
|
content: '//';
|
|
padding: 0 0.5rem;
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
width: var(--list-separator-width);
|
|
margin-right: calc(-1 * var(--list-separator-width));
|
|
}
|
|
|
|
& li:first-child {
|
|
padding-left: 0;
|
|
}
|
|
|
|
& li:last-child:after {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
.fancy-select {
|
|
position: relative;
|
|
vertical-align: bottom;
|
|
display: inline-block;
|
|
height: var(--select-height);
|
|
width: var(--select-width);
|
|
background: var(--control-gradient);
|
|
color: var(--color-black);
|
|
overflow: hidden;
|
|
|
|
& select {
|
|
background: transparent;
|
|
border: 0 none;
|
|
font-size: inherit;
|
|
height: var(--select-height);
|
|
width: calc(var(--select-width) + 2rem);
|
|
}
|
|
|
|
& svg {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
height: var(--select-height);
|
|
width: var(--select-height);
|
|
pointer-events: none;
|
|
background: var(--control-gradient);
|
|
}
|
|
|
|
&:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: var(--select-separator-inset);
|
|
right: var(--select-height);
|
|
height: calc(var(--select-height) - var(--select-separator-inset) * 2);
|
|
border-right: 0.1rem solid color(var(--color-black) alpha(0.2));
|
|
}
|
|
}
|