1
Fork 0
theorangeone.net-legacy/static/src/scss/style.scss

262 lines
3.3 KiB
SCSS
Raw Normal View History

2017-11-12 12:17:57 +00:00
@import "variables";
2017-09-30 22:18:21 +01:00
@import "highlight"; // Generated by Hugo
2017-11-10 21:00:49 +00:00
@import "node_modules/lightgallery/src/sass/lightgallery";
2017-10-26 21:54:02 +01:00
@import "node_modules/bootstrap/scss/bootstrap";
2017-11-10 22:26:53 +00:00
@import "node_modules/plyr/src/scss/plyr";
2017-10-26 21:54:02 +01:00
2017-10-27 09:17:34 +01:00
2017-11-03 23:01:24 +00:00
html, body {
height: 100%;
}
2017-10-27 09:17:34 +01:00
a {
2017-11-11 22:55:29 +00:00
transition: color 0.5s;
2017-10-27 09:17:34 +01:00
color: $primary;
&:hover {
2017-11-11 22:55:29 +00:00
color: $black;
2017-10-27 09:17:34 +01:00
}
&.colour-invert {
color: $black;
&:hover {
color: $primary;
}
}
2017-10-27 09:17:34 +01:00
}
2017-05-08 09:17:01 +01:00
pre code {
margin: 0;
border: 0;
border-radius: 0;
background: none;
padding: 0;
}
2017-05-09 09:36:14 +01:00
2017-05-20 23:32:43 +01:00
code {
padding: 0.25em;
}
2017-05-09 21:04:08 +01:00
.image {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
2017-05-09 21:45:16 +01:00
&.featured {
margin-bottom: 2em !important;
height: 13em;
&.main {
height: 40vh;
}
2017-05-09 21:04:08 +01:00
}
2017-05-09 09:36:14 +01:00
}
2017-05-15 09:29:18 +01:00
2017-07-08 16:31:41 +01:00
.yt-embed {
position: relative;
padding-top: 30px;
2017-07-08 16:32:33 +01:00
padding-bottom: 56.25%;
2017-07-08 16:31:41 +01:00
height: 0;
overflow: hidden;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
2017-07-09 17:49:45 +01:00
#light-gallery {
a {
display: inline-block;
2017-11-11 22:20:03 +00:00
margin-bottom: $grid-gutter-width;
2017-07-09 21:37:13 +01:00
border-bottom: 0;
2017-07-09 19:46:57 +01:00
cursor: zoom-in;
2017-07-09 17:49:45 +01:00
width: 100%;
2017-07-09 19:46:57 +01:00
overflow: hidden;
2017-07-09 17:49:45 +01:00
img {
transition: opacity 0.5s;
2017-07-09 19:46:57 +01:00
width: 100%;
2017-07-09 17:49:45 +01:00
}
&:hover img {
opacity: 0.7;
}
}
2017-11-10 21:00:49 +00:00
& + h4 {
margin-top: -$grid-gutter-width / 2;
}
2017-07-09 17:49:45 +01:00
}
2017-09-16 22:04:15 +01:00
2017-10-15 15:25:54 +01:00
table td {
vertical-align: middle;
}
2017-10-25 09:35:55 +01:00
.navbar {
padding-top: 0;
padding-bottom: 0;
.navbar-brand {
font-size: $font-size-base;
}
.nav-link {
padding-right: $font-size-base !important;
2017-11-09 13:38:26 +00:00
padding-left: $font-size-base !important;
2017-10-25 09:35:55 +01:00
}
2018-02-14 21:37:03 +00:00
.nav-link code, .navbar-brand code {
background-color: inherit;
font-size: 90%;
}
2017-10-25 09:35:55 +01:00
}
.bg-black {
2017-11-09 13:38:26 +00:00
background-color: $black;
2017-10-25 09:35:55 +01:00
}
2017-10-25 13:49:43 +01:00
2017-11-03 23:01:24 +00:00
2017-10-25 13:52:52 +01:00
#index-header {
2017-11-09 13:38:26 +00:00
background-image: url("/img/header.jpg");
2018-01-21 17:00:34 +00:00
background-size: cover;
2017-10-25 20:55:09 +01:00
width: 100%;
2017-11-09 13:38:26 +00:00
height: calc(100% - 110px);
2017-10-25 13:52:52 +01:00
}
2017-10-25 13:49:43 +01:00
footer {
2017-11-09 13:38:26 +00:00
position: static;
2017-10-25 20:55:09 +01:00
bottom: 0;
width: 100%;
2017-11-09 13:21:16 +00:00
height: 110px;
2017-11-09 13:38:26 +00:00
color: $gray-700;
2017-10-25 20:55:09 +01:00
2017-10-25 13:49:43 +01:00
a {
color: $gray-700;
&:hover {
2017-11-09 13:38:26 +00:00
color: $black;
2017-10-25 13:49:43 +01:00
}
}
}
2017-10-25 22:09:16 +01:00
#main {
margin-top: $spacer * 6;
}
.list-page-item {
.img-wrapper {
width: 20%;
}
2017-11-09 21:31:18 +00:00
.image {
2017-10-25 22:09:16 +01:00
width: 100%;
2017-11-09 21:31:18 +00:00
height: 10vh;
2017-10-25 22:09:16 +01:00
}
}
2017-10-26 21:54:02 +01:00
#TableOfContents {
2017-12-22 16:32:01 +00:00
font-size: $font-size-base;
2017-12-22 17:34:39 +00:00
ul {
list-style-type: none;
}
2017-10-26 21:54:02 +01:00
& > ul {
2017-11-12 12:17:57 +00:00
margin-bottom: 0;
2017-11-12 12:23:07 +00:00
padding-left: $spacer;
2017-12-22 17:34:39 +00:00
li {
text-indent: -5px;
&::before {
margin-right: 5px;
content: "-";
}
}
2017-10-26 21:54:02 +01:00
}
}
ul ul, ol ol {
padding-left: $spacer * 1.5;
}
2017-10-27 13:36:18 +01:00
pre.chroma {
margin: $spacer 0;
2017-11-09 13:38:26 +00:00
padding: $spacer;
2017-10-27 13:36:18 +01:00
}
.content {
2017-12-22 16:32:01 +00:00
font-size: $font-size-lg;
2017-12-22 15:45:48 +00:00
2017-10-27 13:36:18 +01:00
h1, h2, h3, h4, h5, h6 {
2017-11-09 13:38:26 +00:00
margin-top: $spacer;
2017-10-27 13:36:18 +01:00
}
2017-12-27 17:36:35 +00:00
blockquote {
2017-12-27 21:39:00 +00:00
border-left: $spacer * 0.2 solid $light;
2017-12-27 17:36:35 +00:00
padding-left: $spacer * 1.2;
}
img {
width: 100%;
}
2018-01-21 21:45:32 +00:00
iframe {
width: 100%;
height: 50vh;
}
2017-10-27 13:36:18 +01:00
}
2017-11-10 22:26:53 +00:00
.plyr {
min-width: initial;
}
2017-11-12 12:22:25 +00:00
p code, li code {
2017-11-12 12:22:25 +00:00
@extend .chroma;
padding: $spacer * 0.25;
}
2017-11-12 12:49:50 +00:00
.header-image {
width: 100%;
height: 35vh;
}
.tag {
font-size: 1rem;
}
2017-12-27 18:40:47 +00:00
.breadcrumb {
2017-12-27 21:39:00 +00:00
margin-top: $spacer * 1.5;
margin-bottom: 0;
2017-12-27 18:40:47 +00:00
background-color: initial;
padding: 0;
font-size: $spacer * 0.9;
.breadcrumb-item + .breadcrumb-item::before {
padding: 0 0.2rem;
color: $black;
}
}
2018-01-20 11:56:31 +00:00
.playlist {
.image {
width: 50px;
height: 50px;
}
td, td > * {
vertical-align: middle;
}
}
2018-01-27 14:52:05 +00:00
.mermaid {
font-size: $font-size-base;
}