regexper-static/src/style.css

99 lines
1.7 KiB
CSS
Raw Normal View History

2018-02-10 22:00:01 +00:00
@import url('//fonts.googleapis.com/css?family=Bangers&text=Regxpr');
:root {
--color-green: #bada55;
--color-brown: #6b6659;
--color-tan: #cbcbba;
--color-black: #000;
--color-white: #fff;
--color-red: #b3151a;
--header-height: 6rem;
--content-margin: 2rem;
--spacing-margin: 1rem;
}
html {
font-size: 62.5%;
}
2018-02-10 20:58:29 +00:00
body {
2018-02-10 22:00:01 +00:00
margin: 0 var(--content-margin);
padding: 0;
2018-02-10 20:58:29 +00:00
font-family: sans-serif;
2018-02-10 22:00:01 +00:00
background: var(--color-brown);
font-size: 1.6rem;
}
2018-02-10 22:20:04 +00:00
:global(#main) {
2018-02-10 22:00:01 +00:00
background: var(--color-green) linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
box-shadow: 0 0 1rem var(--color-black);
padding: 0 var(--content-margin);
margin: 0 calc(-1 * var(--content-margin)) var(--spacing-margin) calc(-1 * var(--content-margin));
position: relative;
}
2018-02-10 22:20:04 +00:00
:global(#main) h1 {
2018-02-10 22:00:01 +00:00
font-family: 'Bangers', 'cursive';
font-size: 4rem;
font-weight: normal;
display: inline-block;
margin: 0;
line-height: var(--header-height);
}
2018-02-10 22:20:04 +00:00
:global(#main) a {
2018-02-10 22:00:01 +00:00
text-decoration: none;
display: inline-block;
}
2018-02-10 22:20:04 +00:00
:global(#main) ul {
2018-02-10 22:00:01 +00:00
line-height: var(--header-height);
position: absolute;
top: 0;
right: var(--content-margin);
}
2018-02-10 22:20:04 +00:00
:global(#main) li a:hover,
:global(#main) li a:active {
2018-02-10 22:00:01 +00:00
text-decoration: underline;
}
footer {
margin: var(--spacing-margin) 0;
}
footer img {
vertical-align: text-top;
width: 80px;
height: 15px;
}
a {
color: inherit;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
list-style-type: none;
display: inline-block;
}
2018-02-10 22:20:04 +00:00
:global(.inline-list) li {
2018-02-10 22:00:01 +00:00
white-space: nowrap;
}
2018-02-10 22:20:04 +00:00
:global(.inline-list) li:after {
2018-02-10 22:00:01 +00:00
content: '//';
padding: 0 0.5rem;
}
2018-02-10 22:20:04 +00:00
:global(.inline-list) li:last-child:after {
2018-02-10 22:00:01 +00:00
content: '';
2018-02-10 20:58:29 +00:00
}