spee.ch/public/assets/css/general.css
2017-10-12 13:10:44 -07:00

531 lines
7.3 KiB
CSS

@font-face {
font-family: 'Lekton';
src: url('../font/Lekton/Lekton-Regular.ttf');
}
@font-face {
font-family: 'Lekton';
src: url('../font/Lekton/Lekton-Bold.ttf');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Lekton';
src: url('../font/Lekton/Lekton-Italic.ttf');
font-weight: normal;
font-style: italic;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
}
.page-contents {
margin: 0px auto;
padding: 0px;
height: calc(100% - 5rem);
max-width: 1200px;
}
/* TEXT */
body, button, input, textarea, label, select, option {
font-family: 'Lekton', monospace;
font-size: medium;
word-wrap: break-word;
}
p {
padding-left: 0.3em;
}
.url-text {
margin:0px;
padding:0px;
}
.url-text--primary {
color: black;
}
.url-text--secondary {
color: grey;
}
.pull-quote {
font-size: 3rem;
}
/* TOOL TIPS */
/* Tooltip container */
.tooltip {
position: relative;
}
/* Tooltip text */
.tooltip > .tooltip-text {
visibility: hidden;
width: 15em;
background-color: grey;
color: #fff;
text-align: center;
padding: 0.5em;
/* Position the tooltip text */
position: absolute;
z-index: 1;
bottom: 110%;
left: 50%;
margin-left: -8em; /* Use half of the width (120/2 = 60), to center the tooltip */
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover > .tooltip-text {
visibility: visible;
}
/* arrow at bottom of tooltip text */
.tooltip > .tooltip-text::after {
content: " ";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: grey transparent transparent transparent;
}
/* LINKS */
a, a:visited {
text-decoration: none;
}
/* HEADERS */
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
.h2--secondary {
color: lightgrey;
}
.h2--top {
margin-top: 0px;
}
h3 {
font-size: 1rem;
}
.input-text--large, .textarea--large, .title-show, .description-show {
font-size: 1.5rem;
}
/* COLUMNS AND ROWS */
.row {
clear: both;
padding: 2rem 2rem 2rem 2rem;
margin: 0px;
}
.row--wide {
padding-right: 0px;
padding-left: 0px;
}
.row--short {
padding-top: 0px;
padding-bottom: 0px;
}
.row--full-height {
height: calc(100% - 4rem);
}
.row--no-top {
padding-top: 0px;
}
.row--no-bottom {
padding-bottom: 0px;
}
.column {
display: inline-block;
padding: 0px;
margin: 0px;
}
.column--1 {
width: 10%;
}
.column--2 {
width: 20%;
}
.column--3 {
width: 30%;
}
.column--4 {
width: 40%;
}
.column--5 {
width: 50%;
}
.column--6 {
width: 60%;
}
.column--7 {
width: 70%;
}
.column--8 {
width: 80%;
}
.column--9 {
width: 90%;
}
.column--10 {
width: 100%;
}
/* ALIGNMENT */
.
align-content-left {
text-align: left;
}
.align-content-center {
text-align: center;
}
.align-content-right {
text-align: right;
}
.align-content-top {
vertical-align: top;
}
.align-content-right {
vertical-align: bottom;
}
.align-content-vcenter-hcenter {
position: absolute;
top: 40%;
left: 50%;
transform: translateX(-50%) translateY(-40%);
}
/* ERROR MESSAGES */
. info-message {
font-weight: bold;
}
.info-message--success {
color: green;
}
.info-message--failure {
color: red;
}
.info-message-placeholder {
display: block;
height: 2rem;
}
/* INPUT FIELDS */
/* blocks */
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px white inset;
}
.label, .input-text, .select, .textarea, .title-show {
margin: 0px;
padding: 0.3em;
outline: none;
border: 0px;
background-color: white;
display: inline-block;
}
.input-disabled {
border: 1px solid black;
padding: 0.5em;
margin: 0px;
color: black;
background-color: white;
}
option {
font-family: monospace;
}
.input-checkbox {
border: 1px solid lightgrey;
background: white;
}
.input-file {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.input-radio, .label--pointer {
cursor: pointer;
}
.input-file-label {
color: dodgerblue;
text-decoration: underline;
cursor: pointer;
}
/* modifiers */
.select--no-arrow {
-moz-appearance:none;
-webkit-appearance: none;
cursor: pointer;
}
.select--arrow {
-moz-appearance:none;
-webkit-appearance: none;
background: url('../img/down_triangle.png') no-repeat right;
padding-right: 1em;
}
.input-text--primary, .select--primary {
border-bottom: 1px solid lightgrey;
}
.input-text--primary:focus, .select--primary:focus {
border-bottom: 1px solid grey;
}
.textarea--primary {
border-bottom: 1px solid lightgrey;
}
.textarea--primary:focus {
border-bottom: 1px solid grey;
}
.input-text--large, .select--large, .textarea--large {
border-left: 1px solid lightgrey;
}
.input-text--large:focus, .select--large:focus, .textarea--large:focus {
border-left: 1px solid grey;
}
.input-text--full-width, .textarea--full-width {
width: calc(100% - 0.6em);
}
.input-disabled--full-width {
width: calc(100% - 1em - 2px);
}
/* BUTTONS */
button {
cursor: pointer;
}
.button--primary {
border: 1px solid black;
padding: 0.5em;
margin: 0.5em 0.3em 0.5em 0.3em;
color: black;
background-color: white;
}
.button--primary:hover {
border: 1px solid dodgerblue;
color: white;
background-color: dodgerblue;
}
.button--primary:active{
border: 1px solid dodgerblue;
color: white;
background-color: white;
}
.button--large{
margin: 0px;
width: calc(100% - 2px);
padding: 2rem;
font-size: x-large;
}
.button--cancel{
border: 0px;
background-color: white;
color: grey;
}
/* TABLES */
table {
width: 100%;
text-align: left;
}
/* NAV BAR */
.nav-bar {
height: 5rem;
}
.nav-bar-title-section, .nav-bar-link-section {
padding: 0px 1em 0px 1em;
}
.nav-bar-title-section {
overflow: hidden;
border-bottom: 2px solid #eaeaea;
position: relative;
}
.nav-bar-link-section {
position: absolute;
bottom: 0px;
right: 0px;
z-index: 1;
}
.nav-bar-logo, .nav-bar-title, .nav-bar-link, .nav-bar-subtitle {
padding: 2rem 0.5rem 1.5rem 0.5rem;
display: inline-block;
color: black;
}
.nav-bar-title--superscript {
font-size: small;
vertical-align: top;
}
.nav-bar-subtitle {
font-size: small;
color:grey;
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
}
.nav-bar-link {
font-weight: normal;
border-bottom: 2px solid white;
}
.nav-bar-link:hover {
color: dodgerblue;
}
.nav-bar-link--active {
color: #1e90ff;
border-bottom: 2px solid dodgerblue;
}
/* PUBLISH FORM */
.dropzone {
border: 2px dashed lightgrey;
text-align: center;
background-color: white;
}
.dropzone:hover {
border: 2px dashed #1e90ff;
background-color: gainsboro;
cursor: pointer;
}
.dropzone--drag-over {
background-color: gainsboro;
border: 2px dashed dodgerblue;
}
#primary-dropzone-wrapper, #publish-form-wrapper {
height: 100%;
}
#primary-dropzone {
height: calc(100% - 4px);
position: relative;
}
#asset-preview-holder {
position: relative;
}
#primary-dropzone-instructions, #preview-dropzone-instructions {
/*position: absolute;*/
/*top: 40%;*/
/*left: 50%;*/
/*transform: translateX(-50%) translateY(-40%);*/
}
#asset-preview {
display: block;
padding: 0.5rem;
width: calc(100% - 1rem);
}
/* Show page */
.video-show, .gifv-show, .image-show {
display: block;
width: 100%;
}
.video-show {
}
/* item lists */
.content-list-item {
}
.content-list-item-asset {
width: 90%;
}
.content-list-item-link {
}
/* other */
.toggle-link {
float: right;
}
.wrap-words {
word-wrap: break-word;
}