hugo-labs/static/css/labs.css
2018-11-20 17:28:09 +01:00

428 lines
6.7 KiB
CSS

BODY {
padding-top: 7.5rem;
letter-spacing: +.02rem;
font-weight: 300;
font-size: 1.6rem;
color: #000;
max-width: 160rem; /*160rem lub 68%*/
margin: auto;
vertical-align: middle;
}
:root{
--bg-color: #14396d;/*#14396d; #222d32; 252525, 292929*/
--child-color: #305d9a;/*#305d9a;#2c3b41; 444, 111*/
}
code {
font-size: 1.6rem;
background-color: #f2f7ff;/*#f9f2f4;*/
color: #00c;
}
p, li, ul, .table {
margin: 0 0;
line-height: 3.5rem;
}
h1 {
text-align: center;
font-size: 3.5rem;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;
/* text-rendering: optimizeLegibility;*/
letter-spacing: 0;
margin: 0 0;
}
h2 {
font-size: 2.45rem;
padding: 3rem 0rem;
}
h3 {
font-size: 2.15rem;
padding: 2rem 0rem;
}
h4 {
font-size: 1.85rem;
padding: 1.3rem 0rem;
}
img{
max-width: 100%;
height: auto;
padding: 0rem 0rem;
}
video {
max-width: 100%;
height: auto;
}
pre {
font-size: 1.6rem;
line-height: 1.7rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
td {
width: 1%;
}
.navbar pre {
font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;
font-size: 1.7rem;
background-color: var(--bg-color);
border-color: #fff;
color: #fff;
border-width: 0rem;
margin-top: -1.2rem;
padding-top: 2rem;
margin-right: -0.5rem;
}
.input-group {
padding-right: 4rem;
padding-left: 3rem;
height: 1rem;
}
.form-control {
max-height: 2.6rem;
margin: 0 0;
border-color: #4d5363;
border-radius: 1rem;
color: #4d5363;
}
.btn {
font-size: 1.2rem;
color: #4d5363;
padding: 0.4rem 1.5rem;
max-height: 2.6rem;
max-width: auto;
margin: 0 0;
float: right;
border-color: #4d5363;
border-radius: 1rem;
}
.btn:hover {
color: #ba3232;
background-color: white;
border-color: #4d5363;
}
.warning {
border-left: 0.60em solid #ba3232;
margin-left: auto;
margin-bottom: 1em;
margin-top: 1em;
color: #ba3232;
padding: 2.5rem 3.5rem;
text-align: left;
/*background-color: #fdf7f7;*/
font-size: 1.6rem;
}
.info {
border-left: 0.6em solid #305d9a;/*#918f8a; #4d5363*/
margin-left: auto;
margin-bottom: 1em;
margin-top: 1em;
color: #305d9a;
padding: 2.5rem 3.5rem;
text-align: left;
/*background-color: #f2f2f2;*/
font-size: 1.6rem;
}
.navbar {
background-color: var(--bg-color);/*#292929;*/
position: fixed;
margin: 0rem 0rem;
border-bottom-width: 0rem;
padding-top: 0.1rem;
border-bottom-width: 0.5rem;
border-bottom-color: white;
}
a:link {
color: #00c;
}
a:visited {
color: #00c;
}
a:hover {
color: #000;
}
.warning a {
color: red;
}
.navbar a {
padding-top: 0.8rem;
font-size: 2rem;
color: #fff;
text-align: right;
float: right;
}
.sidebar-header {
color: #000;
font-size: 1rem;
text-align: center;
letter-spacing: 0.2rem;
font-weight: bold;
padding-bottom: 0.3rem;
background-color: var(--bg-color);/*#292929; rgb(186, 50, 50); #ba3232;*/
border-top-width: 0.5rem;
border-top-color: #000;
}
.sidebar-header img{
display: none;
}
.sidebar-menu {
padding-top: 1.3rem;
}
.sidebar-toggle {
float: left;
margin-left: 1.5rem;
}
.sidebar {
position: fixed;
top: 5rem;
bottom: 0;
left: 0;
z-index: 1050;
padding-left: 2rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
background-color: var(--bg-color);/*#292929;*/
/*border-right: 0.1rem solid #eee;*/
font-weight: 400;
font-size: 1.25rem;
line-height: 1.55;
width: 32rem;
margin: 0 0;
margin-top: 0.5rem;
}
/*
.sidebar img {
max-width: 42rem;
margin-left: -3rem;
margin-top: -1rem;
margin-right:
}
*/
.sidebar.active {
display: block;
}
.sidebar a {
display: block;
padding: 1rem 2rem;
text-decoration: none;
color: #fff; /*ccc*/
}
.sidebar-header a {
color: #fff;
font-size: 1.8rem;
text-align: center;
}
.sidebar ul {
list-style-type: none;
padding: 0;
}
.sidebar > ul {
margin-right: -2.1rem; /* 20px padding + 1px border */
margin-bottom: 2rem;
margin-left: -2rem;
}
.sidebar li {
line-height: 1.7rem;
}
.sidebar .sub-item > a{
padding-left: 4rem;
background-color: var(--child-color);/*#252525;#111;*/
}
.sidebar .subsub-item > a{
padding-left: 6rem;
background-color: var(--child-color);
}
.sidebar .subsubsub-item > a{
padding-left: 8rem;
background-color: var(--child-color);
}
.sidebar .active > a {
color: #000;
background-color: #fff;
font-weight: bold;
}
.sidebar .active > a:hover{
color: #000;
}
.sidebar a:hover {
color: #fff;
font-weight: bold;
}
.main {
padding: 2rem;
margin-left: 0rem;
}
.main .page-header {
margin-top: 0;
}
.property-name {
font-weight: bold;
}
@media (min-width: 768px) {
.sidebar {
display: block;
top: 0rem;
width: 40rem;
margin-top: 0rem;
}
.sidebar-header img{
display: block;
}
.sidebar-header {
font-size: 1rem;
letter-spacing: 0.3rem;
}
.navbar a {
font-size: 2rem;
color: #000;
text-align: right;
float: right;
}
.main {
margin-left: 32rem;
padding-right: 10rem;
padding-left: 10rem;
}
.navbar {
display: block;
background-color: #fff;
max-width: 153.5rem;
margin: auto;
vertical-align: middle;
}
img {
width: 50rem;
height: auto;
transition: width 2s;
transition: height 2s;
}
.navbar pre {
font-family: "Open Sans","Helvetica","Tahoma","Geneva","Arial",sans-serif;
font-size: 2rem;
line-height: 2rem;
background-color: var(--bg-color);
border-color: #000;
color: #fff;
border-radius: 1rem;
margin-top: -3.5rem;
margin-right: 0rem;
padding-top: 3.6rem;
padding-bottom: 1.2rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
}
}
.bs-callout {
padding: 2rem;
margin: 2rem 0;
border: 0.1rem solid #eee;
border-left-width: 0.5rem;
border-radius: 0.3rem;
}
.bs-callout:first-child {
margin-top: 0;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 0.5rem;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
border-radius: 0.3rem;
}
.bs-callout+.bs-callout {
margin-top: -0.5rem;
}
.bs-callout-default {
border-left-color: #777;
}
.bs-callout-default h4 {
color: #777;
}
.bs-callout-primary {
border-left-color: #428bca;
}
.bs-callout-primary h4 {
color: #428bca;
}
.bs-callout-success {
border-left-color: #5cb85c;
}
.bs-callout-success h4 {
color: #5cb85c;
}
.bs-callout-danger {
border-left-color: #d9534f;
}
.bs-callout-danger h4 {
color: #d9534f;
}
.bs-callout-warning {
border-left-color: #f0ad4e;
}
.bs-callout-warning h4 {
color: #f0ad4e;
}
.bs-callout-info {
border-left-color: #5bc0de;
}
.bs-callout-info h4 {
color: #5bc0de;
}