mirror of
https://github.com/YunoHost/yunohost-fosdem-2019.git
synced 2024-09-03 20:06:32 +02:00
274 lines
5.7 KiB
SCSS
274 lines
5.7 KiB
SCSS
// Theme
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/*
|
|
$primary : #3FC1F5;
|
|
$primary-bg : #111;
|
|
$secondary : #40F040;
|
|
$tertiary : #D5D5D5;
|
|
$light : #FFF;
|
|
$dark : #222;
|
|
$text-dark : $dark;
|
|
$text-light : $light;
|
|
$code-background : #111;
|
|
*/
|
|
|
|
$primary : #0070d0;
|
|
$primary-bg : #ffffff;
|
|
$primary-dark : #10A0ff;
|
|
$secondary : #10D010;
|
|
$secondary-dark : #F0F000;
|
|
$tertiary : #454545;
|
|
$light : #222;
|
|
$dark : #FFF;
|
|
$text-dark : #DADADA;
|
|
$text-light : $light;
|
|
$code-background : #F8F8D8;
|
|
|
|
|
|
$overlay : transparentize(#000, .5);
|
|
$margin : 15px;
|
|
$iframe-scale : 1.5;
|
|
|
|
|
|
$font-size : 32px;
|
|
$font-size-impact : 120px;
|
|
$font : Open Sans, Helvetica, Arial, sans-serif;
|
|
$font-title : Open Sans, Helvetica, Arial, sans-serif;
|
|
$font-fixed : Hack, monospace;
|
|
|
|
// CSS Base
|
|
// ---------------------------------------------------------------------------
|
|
|
|
* { box-sizing: border-box; }
|
|
body { font-family: $font; }
|
|
h1, h2, h3, h4, h5, h6 {
|
|
margin: 0 0 $margin 0;
|
|
font-family: $font-title;
|
|
}
|
|
h1 { color: $primary; }
|
|
h2 { color: $secondary; }
|
|
h3 { color: $tertiary; }
|
|
li { margin-bottom: .25em; };
|
|
pre, code {
|
|
text-align: left;
|
|
font-family: $font-fixed;
|
|
color: $light;
|
|
background: $code-background;
|
|
padding: 0.1em;
|
|
}
|
|
a, a:visited, a:hover, a:active { color: $text-dark; }
|
|
img { vertical-align: inherit; }
|
|
blockquote {
|
|
border-left: 8px solid;
|
|
padding-left: .5em;
|
|
color: $tertiary;
|
|
text-align: left;
|
|
margin: 1em 0;
|
|
& > p { margin: 0; }
|
|
}
|
|
|
|
|
|
// Remark base
|
|
// ---------------------------------------------------------------------------
|
|
|
|
.remark-code { font-size: .9em; padding: 0; background: $code-background
|
|
!important; }
|
|
.remark-container { background: $dark; }
|
|
.remark-slide-scaler { box-shadow: none; }
|
|
.remark-notes { font-size: 1.5em; }
|
|
|
|
.remark-slide-content {
|
|
background-color: $dark;
|
|
font-size: $font-size;
|
|
padding: 1em 2em;
|
|
color: $text-light;
|
|
background-size: cover;
|
|
}
|
|
|
|
.remark-slide-number {
|
|
color: $text-light;
|
|
right: 1em;
|
|
opacity: .6;
|
|
font-size: 0.8em;
|
|
z-index: 2;
|
|
.no-counter & { display: none; }
|
|
}
|
|
|
|
// Additions
|
|
.impact {
|
|
background-color: $primary-bg;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
&, h1, h2 { color: $text-light; }
|
|
h1 { font-size: $font-size-impact; }
|
|
}
|
|
|
|
emph { color: $secondary; }
|
|
red { color: #ff3030; }
|
|
|
|
.nopaddingtop {
|
|
padding: 0px;
|
|
p { margin-top: 0px; padding-top: 0px; }
|
|
}
|
|
|
|
.bigblack {
|
|
font-size: 40px;
|
|
background-color: #111;
|
|
color: $dark;
|
|
h1 { color: $primary-dark; font-size: 100px; }
|
|
emph { color: $secondary-dark; }
|
|
}
|
|
|
|
.img-560 {
|
|
img { height: 560px; }
|
|
}
|
|
|
|
.full {
|
|
background-color: $primary-bg;
|
|
vertical-align: middle;
|
|
text-align: center;
|
|
padding: 0px;
|
|
p { padding-top: 0px; }
|
|
img { position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 1400px;
|
|
height: 800px;
|
|
margin-top: -400px; /* Half the height */
|
|
margin-left: -700px; /* Half the width */
|
|
}
|
|
}
|
|
/*
|
|
.full {
|
|
&, h1, h2 { color: $text-light; }
|
|
&iframe {
|
|
height: calc(#{100%/$iframe-scale} - 1.2em);
|
|
width: 100%/$iframe-scale;
|
|
transform: scale($iframe-scale);
|
|
transform-origin: 0 0;
|
|
border: 0;
|
|
}
|
|
}
|
|
*/
|
|
|
|
.bottom-bar {
|
|
background-color: $primary;
|
|
color: $text-light;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
font-size: 20px;
|
|
padding: .8em;
|
|
text-align: left;
|
|
z-index: 1;
|
|
p { margin: 0;}
|
|
.impact &, .full & { display: none; }
|
|
}
|
|
|
|
|
|
// Utilities
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// Positioning
|
|
.side-layer {
|
|
position: absolute;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 0 2em;
|
|
}
|
|
.middle { &, & img, & span { vertical-align: middle; } };
|
|
.top { vertical-align: top; };
|
|
.bottom { vertical-align: bottom; };
|
|
.inline-block {
|
|
p, ul, ol, blockquote {
|
|
display: inline-block;
|
|
text-align: left;
|
|
}
|
|
}
|
|
.no-margin { &, & > p, & > pre, & > ul, & > ol { margin: 0; } }
|
|
.no-padding { padding: 0; }
|
|
.space-left { padding-left: 1em; }
|
|
.space-right { padding-right: 1em; }
|
|
|
|
// Images
|
|
.responsive > img { width: 100%; height: auto; };
|
|
.contain { background-size: contain; };
|
|
.overlay { box-shadow: inset 0 0 0 9999px $overlay; }
|
|
|
|
// Text
|
|
.left { text-align: left; }
|
|
.right { text-align: right; }
|
|
.center { text-align: center; }
|
|
.justify { text-align: justify; }
|
|
.primary { color: $primary; }
|
|
.alt { color: $secondary; };
|
|
.em { color: $tertiary; };
|
|
.thin { font-weight: 200; }
|
|
.huge { font-size: 2em; }
|
|
.big { font-size: 1.5em; }
|
|
.small { font-size: .8em; }
|
|
.dark-bg { background-color: $dark; }
|
|
.alt-bg { background-color: $secondary; };
|
|
|
|
// Simple 12-columns grid system
|
|
.row {
|
|
width: 100%;
|
|
&::after {
|
|
content: '';
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
&.table { display: table; };
|
|
&.table [class^="col-"] {
|
|
float: none;
|
|
display: table-cell;
|
|
vertical-align: inherit;
|
|
}
|
|
}
|
|
|
|
[class^="col-"] {
|
|
float: left;
|
|
&.inline-block {
|
|
float: none;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
@for $i from 1 through 12 {
|
|
.col-#{$i} {width: 100% / 12 * $i; }
|
|
}
|
|
|
|
// Animations
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.animation-fade {
|
|
animation-duration: 300ms;
|
|
animation-fill-mode: both;
|
|
animation-timing-function: ease-out;
|
|
.remark-visible & { animation-name: fadeIn; }
|
|
}
|
|
|
|
|
|
// Fix PDF print with chrome
|
|
// ---------------------------------------------------------------------------
|
|
|
|
@page {
|
|
// 908px 681px for 4/3 slides
|
|
size: 1210px 681px;
|
|
margin: 0;
|
|
}
|
|
|
|
@media print {
|
|
.remark-slide-scaler {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
transform: scale(1) !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
}
|
|
}
|