167 lines
2.0 KiB
CSS
167 lines
2.0 KiB
CSS
/*
|
|
This file contains main layout styles which applies to every View. In some views this rules are overrided in separate CSS files
|
|
*/
|
|
|
|
/* Header styles */
|
|
nav
|
|
{
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
grid-column-gap: 10px;
|
|
grid-template-rows: auto auto;
|
|
background-color: #343434;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 10;
|
|
padding: 10px;
|
|
min-height: 33px;
|
|
font-size: 26px;
|
|
user-select: none;
|
|
}
|
|
|
|
nav a
|
|
{
|
|
text-decoration: none;
|
|
color: white;
|
|
}
|
|
|
|
nav a:hover
|
|
{
|
|
color: gray;
|
|
}
|
|
|
|
nav div
|
|
{
|
|
grid-column: 3;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
menu
|
|
{
|
|
margin: 26px auto 26px auto;
|
|
grid-row: 2;
|
|
list-style: none;
|
|
}
|
|
|
|
menu li
|
|
{
|
|
font-size: 20px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Footer styles */
|
|
footer
|
|
{
|
|
padding: 10px;
|
|
display: grid;
|
|
align-items: center;
|
|
grid-template-columns: 1fr auto;
|
|
grid-column-gap: 10px;
|
|
user-select: none;
|
|
}
|
|
|
|
footer a
|
|
{
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
footer a:hover
|
|
{
|
|
color: orangered;
|
|
}
|
|
|
|
/* Body styles */
|
|
html
|
|
{
|
|
overflow: hidden;
|
|
}
|
|
|
|
body
|
|
{
|
|
overflow: auto;
|
|
margin: 0px;
|
|
margin-top: 53px;
|
|
font-family: 'Consolas', 'SegoeMDL2Assets';
|
|
/* This stuff is necessary for sticky footer */
|
|
display: grid;
|
|
grid-template-rows: 1fr auto;
|
|
height: calc(100vh - 53px);
|
|
}
|
|
|
|
header a
|
|
{
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
a:link:hover
|
|
{
|
|
text-decoration: underline;
|
|
}
|
|
|
|
article
|
|
{
|
|
margin: 0px 50px;
|
|
}
|
|
|
|
article a:visited, article a:link
|
|
{
|
|
color: blue;
|
|
}
|
|
|
|
header
|
|
{
|
|
margin: 16px 50px;
|
|
}
|
|
|
|
.comment, .comment:visited
|
|
{
|
|
color: #57a64a !important;
|
|
text-decoration: none;
|
|
}
|
|
|
|
*[hidden]
|
|
{
|
|
display: none;
|
|
}
|
|
|
|
/* Adaptive code */
|
|
@media only screen and (min-width: 980px)
|
|
{
|
|
menu
|
|
{
|
|
display: initial !important;
|
|
grid-row: 1;
|
|
grid-column: 2;
|
|
margin: 0px;
|
|
}
|
|
|
|
menu li
|
|
{
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
margin-top: 0px;
|
|
}
|
|
|
|
#menu-toggle
|
|
{
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 500px)
|
|
{
|
|
article
|
|
{
|
|
margin: 0px 20px;
|
|
}
|
|
|
|
header
|
|
{
|
|
margin: 16px 20px;
|
|
}
|
|
} |