django-simplecms/cms/static/cms/cms.scss.css

206 wiersze
4.3 KiB
CSS

html, body {
font-family: sans-serif;
margin: 0;
padding: 0; }
div.wrapper {
max-width: 700px;
margin: auto; }
header {
padding: 1rem; }
@media (min-width: 500px) {
nav button#hamburger {
display: none; }
nav ul#menu {
list-style: none;
margin: 0;
padding: 0;
text-align: center; }
nav ul#menu li {
margin: 1em;
padding: 0;
display: inline-block; }
nav ul#menu li a {
transition: .1s ease;
display: inline-block;
text-decoration: none;
color: inherit;
font-weight: bold;
font-size: 1.25em; }
nav ul#menu li a:hover, nav ul#menu li a.current {
transform: scale(1.2);
transform-origin: bottom; } }
@media (max-width: 500px) {
nav button#hamburger {
position: absolute;
z-index: 1;
top: 0;
right: 0; }
nav button#hamburger .hamburger-inner, nav button#hamburger .hamburger-inner:before, nav button#hamburger .hamburger-inner:after {
background: black !important; }
nav button#hamburger.is-active {
position: fixed; }
nav button#hamburger:hover {
opacity: 1 !important; }
nav button#hamburger:focus {
outline: none !important; }
nav ul#menu {
position: fixed;
z-index: 1;
margin: 0;
padding: 0;
padding-top: 2em;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: white;
list-style: none;
transition: .5s ease;
transform: translatex(100%); }
nav ul#menu li {
padding: 1em;
margin: 0 1em;
border-bottom: 1px solid #ddd;
line-height: 1.5;
text-align: center; }
nav ul#menu li a {
color: black;
text-decoration: none;
font-size: 34px; }
nav ul#menu.visible {
transform: translatex(0); } }
article section {
padding: 1rem; }
div.edit {
position: fixed;
left: 1em;
top: 1em;
font-size: 0.8em;
color: red; }
div.edit a, div.edit button {
color: inherit;
border: none;
display: inline;
background: none;
cursor: pointer;
margin: 0;
padding: 0; }
div.edit a:before, div.edit button:before {
content: '[ '; }
div.edit a:after, div.edit button:after {
content: ' ]'; }
a.edit {
color: red !important; }
div.video {
padding: 0;
margin: -10px 0; }
div.video div.iframe {
width: 100%;
padding-bottom: 56%;
position: relative; }
div.video div.iframe iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0; }
/* Form elements */
form fieldset {
padding: 2em;
margin-bottom: 2em;
border: 0.5px solid black;
border-radius: 3px; }
form fieldset legend {
font-size: 1.15em; }
form div.formfield {
margin: 5px 0;
padding: 10px 0;
font-size: 0; }
form div.formfield > * {
font-size: 1rem; }
form div.formfield.error {
border: 1px solid red;
border-radius: 10px; }
form div.formfield.error div.errors ul li:before {
content: "Oeps! "; }
form div.formfield.required div.label {
font-weight: 700; }
form div.formfield.required input, form div.formfield.required select, form div.formfield.required textarea {
border: 1px solid black; }
form div.label {
font-size: 0.8rem;
font-weight: 400; }
form div.input {
overflow: hidden;
margin: 5px 0; }
form div.helptext, form span.required {
color: #666;
font-size: 12px !important;
font-weight: 400 !important; }
form span.required {
font-style: italic; }
form input, form select, form textarea {
background: white;
color: black;
border: 1px solid #aaa;
font-size: 1rem;
diplay: inline-block;
width: 100%;
box-sizing: border-box;
margin: 0;
padding: 5px; }
form div.django-ckeditor-widget {
display: block !important; }
form div.cke_chrome {
box-sizing: border-box !important;
border: 1px solid #aaa !important; }
form input[type=checkbox] {
width: auto; }
form select {
background: white; }
form div.filefield {
border: 1px solid #aaa;
background: white;
padding: 4px; }
form div.filefield input {
border: none; }
form ul.errorlist {
margin: 0;
padding: 0;
list-style: none;
color: red;
font-size: 12px !important; }
form ul.errorlist li {
margin: 0;
padding: 0; }
form .errors {
color: red;
font-weight: bold; }
/*# sourceMappingURL=cms.scss.css.map */