oxe
Version:
A mighty tiny web components framework/library
180 lines (178 loc) • 2.92 kB
CSS
/* :root {
} */
html, body {
margin: 0;
padding: 0;
font-size: 16px;
}
body > * {
font-size: 1rem;
color: dimgray;
box-sizing: border-box;
font-family: sans-serif;
transition: all linear 150ms;
}
body {
flex: 1;
width: 100vw;
display: flex;
min-height: 100vh;
overflow-x: hidden;
flex-direction: column;
background-color: white;
}
a {
cursor: pointer;
color: darkorange;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
i {
font-weight: 200;
font-family: monospace;
}
li {
margin: 0.6rem;
}
h1 {
font-size: 3rem;
font-weight: 300;
margin: 1rem 0;
}
h2 {
font-weight: 300;
font-size: 2.9rem;
margin: 3rem 0 1rem 0;
}
h3 {
padding: 1rem 0;
font-weight: 300;
font-size: 2.9rem;
margin: 3rem 0 2rem 0;
border-bottom: solid 2px lightgray;
}
pre {
/* flex: 1 0; */
margin: 0;
tab-size: 4;
padding: 1rem;
overflow-x: auto;
/* white-space: pre-line; */
font-family: monospace ;
background-color: whitesmoke ;
}
label {
display: flex;
align-items: center;
justify-content: center;
}
main {
width: 100%;
margin: 5vh auto;
max-width: 1200px;
}
main > :first-child {
display: block;
padding: 0 5vw;
}
section {
margin: 1rem auto;
padding: 1rem;
/* height: 100vh; */
display: flex;
max-width: 1000px;
flex-direction: column;
justify-content: center;
}
button {
display: inline-block;
border: none;
cursor: pointer;
margin: 0.5rem auto;
padding: 0.5rem;
font-size: 1rem;
font-weight: 600;
color: dimgray;
border-radius: 5px;
background: darkorange;
}
button:hover {
filter: saturate(0.6);
}
.title {
display: block;
padding: 1rem 0;
text-align: center;
}
.title > h1 {
font-weight: 200;
color: lightslategrey;
}
.title > h2 {
font-weight: 200;
font-size: 1.3rem;
color: lightslategrey;
}
.title > h1 > span {
font-weight: 200;
font-size: 3.9rem;
color: darkorange;
text-transform: uppercase;
}
.menu {
width: 100%;
display: block;
text-align: center;
background-color: whitesmoke;
border-bottom: solid 3px darkorange;
}
.menu a {
display: inline-block;
vertical-align: middle;
padding: 1.3rem 1.9rem;
text-transform: uppercase;
}
.menu a:hover {
background: rgba(0, 0, 0, 0.1);
}
.menu-item {
position: relative;
display: inline-block;
}
.menu-item-button > a::after {
margin: 0.6rem;
/* content: '\2bc6'; */
content: '';
color: darkorange;
}
.menu-item-content {
z-index: 1;
display: none;
position: absolute;
background: whitesmoke;
}
.menu-item:hover .menu-item-content {
display: block;
}
r-error {
text-align: center;
align-items: center;
align-content: center;
justify-content: center;
flex-direction: column;
}
o-select {
padding: 0.5rem;
border: 1px solid lightgray;
}
o-option {
margin-left: 1rem;
}
o-option[active] {
background-color: lightgray;
}
o-optgroup::before {
font-weight: bold;
}