phundrak-com/style/main.css

335 lines
5.7 KiB
CSS
Raw Normal View History

2019-02-10 20:40:14 +00:00
/*****************************************************************************/
/* Inspired by the design of the Rust-lang website */
/*****************************************************************************/
2019-02-10 16:07:46 +00:00
@import url('https://fonts.googleapis.com/css?family=Fira+Sans&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese');
@import url('https://fonts.googleapis.com/css?family=Alfa+Slab+One&subset=latin-ext,vietnamese');
2019-01-21 18:51:52 +00:00
body {
display: grid;
grid-template-areas:
'ribbon ribbon'
'sidebar content';
2019-02-10 19:34:32 +00:00
grid-template-columns: 300px auto;
background-color: #3498db;
2019-02-10 16:19:31 +00:00
margin: 0;
padding: 0;
2019-02-10 17:21:23 +00:00
font-family: 'Fira Sans', serif;
color: #ecf0f1;
2019-01-21 18:51:52 +00:00
}
a {
text-decoration: none;
color: #ecf0f1;
2019-02-10 16:07:46 +00:00
text-decoration: none;
font-style: italic;
border-bottom: 5px solid #9b59b6;
transition: color 0.2s;
2019-02-10 17:21:23 +00:00
}
2019-01-29 09:55:09 +00:00
a:hover {
color: #9b59b6;
transition: color 0.4s;
2019-02-10 16:07:46 +00:00
}
h1,
h2 {
margin: 0;
padding: 0 20px;
2019-01-29 09:55:09 +00:00
}
2019-02-10 16:07:46 +00:00
.sidebar,
.content {
2019-01-21 18:51:52 +00:00
padding: 10px;
background-color: #bdc3c7;
2019-01-21 18:51:52 +00:00
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
/* ribbon ********************************************************************/
.ribbon {
2019-01-29 09:55:09 +00:00
grid-area: ribbon;
2019-01-21 18:51:52 +00:00
padding: 0;
margin: 0;
2019-01-29 09:55:09 +00:00
background-color: #2c3e50;
2019-01-21 18:51:52 +00:00
}
2019-02-10 16:07:46 +00:00
.ribbon,
.ribbon a {
2019-01-21 18:51:52 +00:00
color: #ecf0f1;
}
.ribbon-links {
display: table;
list-style-type: none;
margin: 0;
padding: 0;
background-color: #7f8c8d;
width: 100%;
white-space: nowrap;
2019-02-10 17:21:23 +00:00
line-height: 2.5em;
2019-01-21 18:51:52 +00:00
}
2019-02-10 16:07:46 +00:00
2019-01-21 18:51:52 +00:00
.ribbon-links li {
display: table-cell;
float: left;
padding: 5px 20px;
background-color: #7f8c8d;
2019-02-10 17:21:23 +00:00
transition: background-color 0.2s;
position: relative;
z-position: 20;
2019-01-21 18:51:52 +00:00
}
.ribbon li:hover {
2019-02-10 17:21:23 +00:00
background-color: #34495e;
transition: background-color 0.3s;
2019-01-21 18:51:52 +00:00
}
/* sidebar *******************************************************************/
.sidebar {
2019-02-10 19:34:32 +00:00
display: grid;
grid-template-areas:
'side-picture'
'side-contact'
'side-situation'
'side-bio'
'side-links';
2019-01-21 18:51:52 +00:00
grid-area: sidebar;
2019-02-10 16:07:46 +00:00
margin: 10px 5px 10px 10px;
2019-02-10 19:34:32 +00:00
grid-auto-rows: min-content;
2019-01-21 18:51:52 +00:00
}
.side-picture {
2019-02-10 19:34:32 +00:00
grid-area: side-picture;
margin: 10px;
}
.side-picture > .picture {
max-width: 100%;
margin: 0 auto;
2019-01-21 18:51:52 +00:00
}
2019-02-10 19:34:32 +00:00
.side-contact {
grid-area: side-contact;
}
.side-situation {
grid-area: side-situation;
}
.side-bio {
grid-area: side-bio;
}
.side-liens {
grid-area: side-links;
}
2019-01-21 18:51:52 +00:00
.side-card {
margin: 10px;
background-color: #2c3e50;
2019-01-21 18:51:52 +00:00
}
2019-02-10 16:07:46 +00:00
.side-card h4,
.side-content {
2019-01-21 18:51:52 +00:00
padding: 10px 1em;
margin: 0;
}
p.side-content {
padding: 0.5em 1em;
}
2019-02-10 16:07:46 +00:00
.side-links {
line-height: 1.75em;
2019-02-10 16:07:46 +00:00
}
2019-01-21 18:51:52 +00:00
/* content *******************************************************************/
.content {
grid-area: content;
2019-02-10 16:07:46 +00:00
margin: 10px 10px 10px 5px;
2019-01-29 09:55:09 +00:00
}
2019-02-10 16:07:46 +00:00
.card {
background-color: #34495e;
2019-01-29 09:55:09 +00:00
padding: 10px;
2019-02-10 16:07:46 +00:00
margin: 40px 10px;
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
transition: box-shadow 0.2s;
}
.card:hover {
box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.7);
transition: box-shadow 0.3s;
}
.card-lvl2 {
2019-02-14 02:44:52 +00:00
margin: 10px 20px 20px 20px;
2019-02-10 16:07:46 +00:00
padding-left: 0;
2019-02-10 17:21:23 +00:00
background-color: #2c3e50;
color: #ecf0f1;
2019-02-10 16:07:46 +00:00
}
.list-lvl1,
.list-lvl1 a {
2019-02-10 17:21:23 +00:00
background-color: #2c3e50;
2019-02-10 16:07:46 +00:00
list-style: none;
}
.list-lvl1 {
padding: 10px;
}
.list-lvl1 h4 {
margin-block-start: 0.5em;
margin-block-end: 1em;
}
.two-col-ul {
collumns: 2;
-webkit-columns: 2;
-moz-columns: 2;
}
2019-02-14 02:44:52 +00:00
.content > .card > ul {
padding: 0;
}
2019-02-10 16:07:46 +00:00
/* highlights ****************************************************************/
h1,h2,h3,h4,h5 {
font-family: 'Alfa Slab One', serif;
font-weight: 300;
margin: 0;
z-index: 20;
position: relative;
}
h1 {
font-size: 4em;
}
h2 {
font-size: 3em;
}
h3 {
font-size: 2em;
}
h4 {
2019-02-10 17:21:23 +00:00
font-size: 1.4em;
}
h5 {
font-size: 1.4em;
2019-02-10 16:07:46 +00:00
}
.header-container {
display: inline-block;
}
.highlight-h1, .highlight-h2, .highlight-h3, .highlight-h4, .highlight-h5 {
position: relative;
left: -10px;
width: 120%;
max-width: 90vw;
z-index: 10;
2019-02-10 19:34:32 +00:00
width: auto !important;
2019-02-10 16:07:46 +00:00
}
.highlight-h1 {
background-color: #1abc9c !important;
height: 48px;
top: -48px;
}
.highlight-h2 {
background-color: #f1c40f !important;
height: 34px;
top: -34px;
}
.highlight-h3 {
background-color: #27ae60 !important;
2019-02-10 16:07:46 +00:00
height: 24px;
top: -24px;
}
.highlight-h4 {
background-color: #e67e22 !important;
height: 24px;
2019-02-10 17:21:23 +00:00
top: -28px;
2019-02-10 16:07:46 +00:00
left: 0;
width: 110%;
}
.list-lvl1 .highlight-h4 {
background-color: #e67e22 !important;
height: 24px;
2019-02-10 17:21:23 +00:00
top: -42px;
2019-02-10 16:07:46 +00:00
left: 0;
left: -10px;
width: 120%;
}
.highlight-h5 {
background-color: #9b59b6 !important;
2019-02-10 17:21:23 +00:00
height: 18px;
top: -20px;
}
.list-no-style {
list-style: none;
2019-01-21 18:51:52 +00:00
}
2019-02-10 19:34:32 +00:00
/* smaller displays **********************************************************/
@media only screen and (max-width: 1200px) {
.two-col-ul {
collumns: 1;
-webkit-columns: 1;
-moz-columns: 1;
}
}
@media only screen and (max-width: 1050px) {
body {
grid-template-areas:
'ribbon'
'sidebar'
'content';
grid-template-columns: auto;
grid-template-rows: auto auto auto;
}
.sidebar {
grid-template-areas:
'side-picture side-links'
'side-contact side-situation'
'side-bio side-bio';
margin: 10px;
}
.content {
margin: 10px;
}
}
@media only screen and (max-width: 600px) {
.sidebar {
grid-template-areas:
'side-picture'
'side-contact'
'side-situation'
'side-bio'
'side-links';
}
}