omegamma/static/css/common.css

225 lines
3.5 KiB
CSS

body {
font-family: 'Metropolis', 'Fira Sans','Ubuntu', 'Noto Sans', sans-serif;
overflow-x: hidden;
margin: 0px;
--light-font: 'Metropolis Light', 'Fira Sans Light','Ubuntu Light', 'Noto Sans Light', sans-serif;
--primary-color: #50DC71;
--secondary-color: #FAFAFA;
--nav-background: var(--secondary-color);
--nav-background-dark: #282828;
--footer-background: #111111;
}
.content-center {
max-width: 75em;
}
.padding-container {
padding: 1em;
}
/* button */
a[role=button] {
text-decoration: none;
color: black;
cursor: pointer;
}
.primary {
background-color: var(--primary-color);
}
.secondary {
background-color: var(--secondary-color);
}
a[role=button].primary, a[role=button].secondary {
padding: 0.5em;
text-transform: uppercase;
font-size: larger;
box-shadow: 0px 0px 2px 0px #000000;
transition: box-shadow 0.2s;
line-height: 3em;
}
a[role=button].primary:active, a[role=button].secondary:active {
box-shadow: 0px 0px 8px 0px #000000;
}
a[role=button].primary:hover, a[role=button].secondary:hover {
box-shadow: 0px 0px 4px 0px #000000;
}
.text-white a[role=button]:not(.primary), a[role=button]:not(.primary).text-white {
color: white;
}
/* format */
.fill-width {
width: 100%;
}
.center {
margin-right: auto !important;
margin-left: auto !important;
}
img.center {
display: block;
max-width: 100%;
}
.vertical-center {
margin-top: auto !important;
margin-bottom: auto !important;
max-height: 100%;
}
/* workaround for sometimes images don't position correctly vertically */
.vertical-center-img {
margin: auto;
max-height: 100%;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-white {
color: white;
}
.text-white .icon-monochrome {
filter: invert(96%) sepia(0%) saturate(0%) hue-rotate(119deg) brightness(104%) contrast(104%);
}
.icon-as-text {
width: 1em;
height: 1em;
margin-right: 0.4em;
vertical-align: middle;
}
.icon-larger-text {
width: 1.4em;
height: 1.4em;
margin-right: 0.4em;
margin-top: -0.2em;
vertical-align: middle;
}
h1 {
font-size: xx-large;
font-family: var(--light-font);
}
h2 {
font-size: x-large;
font-family: var(--light-font);
}
h3 {
font-family: var(--light-font);
}
p {
line-height: 1.5em;
}
.grid {
display: flex;
flex-wrap: wrap;
margin: 3px;
}
.flex {
display: flex !important;
}
.inline {
display: inline !important;
}
.flex-right {
justify-content: flex-end;
}
.flex-center {
justify-content: center;
}
/* Columns */
.columns-container {
display: flex;
}
.col1:not(.col1-fill) {
width: 50%;
margin-right: auto !important;
margin-left: auto !important;
}
.col1.col1-fill {
width: 100%;
}
.col2 {
width: 50%;
}
.col3 {
width: 33%;
}
.col2-3 {
width: 66%;
}
.col4 {
width: 25%;
}
.col3-4 {
width: 75%;
}
.col5 {
width: 20%;
}
@media screen and (max-width: 700px) {
:not(footer) > .columns-container {
display: block;
}
.column {
width: 100%;
}
.section-header .column > img {
width: 100%;
}
.column .text-right, .column.text-right, .column .text-left, .column.text-left {
text-align: center;
}
.column .flex-right {
justify-content: center;
}
.col1:not(.col1-fill) {
width: 100%;
}
}