1
0
Fork 0
why-cant-we-deploy-today/css/theme/template/theme.scss

334 lines
5.8 KiB
SCSS
Raw Permalink Normal View History

// Base theme template for reveal.js
/*********************************************
* GLOBAL STYLES
*********************************************/
@import "./exposer";
.reveal-viewport {
2023-05-23 19:50:14 +02:00
@include bodyBackground();
background-color: var(--r-background-color);
}
.reveal {
2023-05-23 19:50:14 +02:00
font-family: var(--r-main-font);
font-size: var(--r-main-font-size);
font-weight: normal;
color: var(--r-main-color);
}
2020-05-11 11:28:36 +02:00
.reveal ::selection {
2023-05-23 19:50:14 +02:00
color: var(--r-selection-color);
background: var(--r-selection-background-color);
text-shadow: none;
}
2020-05-11 11:28:36 +02:00
.reveal ::-moz-selection {
2023-05-23 19:50:14 +02:00
color: var(--r-selection-color);
background: var(--r-selection-background-color);
text-shadow: none;
}
.reveal .slides section,
2023-05-23 19:50:14 +02:00
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit;
}
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
2023-05-23 19:50:14 +02:00
margin: var(--r-heading-margin);
color: var(--r-heading-color);
2023-05-23 19:50:14 +02:00
font-family: var(--r-heading-font);
font-weight: var(--r-heading-font-weight);
line-height: var(--r-heading-line-height);
letter-spacing: var(--r-heading-letter-spacing);
2023-05-23 19:50:14 +02:00
text-transform: var(--r-heading-text-transform);
text-shadow: var(--r-heading-text-shadow);
2023-05-23 19:50:14 +02:00
word-wrap: break-word;
}
.reveal h1 {
2023-05-23 19:50:14 +02:00
font-size: var(--r-heading1-size);
}
.reveal h2 {
font-size: var(--r-heading2-size);
}
.reveal h3 {
font-size: var(--r-heading3-size);
}
.reveal h4 {
font-size: var(--r-heading4-size);
}
2023-05-23 19:50:14 +02:00
.reveal h1 {
text-shadow: var(--r-heading1-text-shadow);
}
2014-05-26 11:25:47 +02:00
/*********************************************
* OTHER
*********************************************/
.reveal p {
2023-05-23 19:50:14 +02:00
margin: var(--r-block-margin) 0;
line-height: 1.3;
}
/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
2023-05-23 19:50:14 +02:00
margin-bottom: 0;
}
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
2023-05-23 19:50:14 +02:00
max-width: 95%;
max-height: 95%;
}
.reveal strong,
.reveal b {
2023-05-23 19:50:14 +02:00
font-weight: bold;
}
.reveal em {
2023-05-23 19:50:14 +02:00
font-style: italic;
}
.reveal ol,
.reveal dl,
.reveal ul {
2023-05-23 19:50:14 +02:00
display: inline-block;
2023-05-23 19:50:14 +02:00
text-align: left;
margin: 0 0 0 1em;
}
.reveal ol {
2023-05-23 19:50:14 +02:00
list-style-type: decimal;
}
.reveal ul {
2023-05-23 19:50:14 +02:00
list-style-type: disc;
}
.reveal ul ul {
2023-05-23 19:50:14 +02:00
list-style-type: square;
}
.reveal ul ul ul {
2023-05-23 19:50:14 +02:00
list-style-type: circle;
}
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
2023-05-23 19:50:14 +02:00
display: block;
margin-left: 40px;
}
.reveal dt {
2023-05-23 19:50:14 +02:00
font-weight: bold;
}
.reveal dd {
2023-05-23 19:50:14 +02:00
margin-left: 40px;
}
.reveal blockquote {
2023-05-23 19:50:14 +02:00
display: block;
position: relative;
width: 70%;
margin: var(--r-block-margin) auto;
padding: 5px;
2023-05-23 19:50:14 +02:00
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block;
}
.reveal q {
2023-05-23 19:50:14 +02:00
font-style: italic;
}
.reveal pre {
2023-05-23 19:50:14 +02:00
display: block;
position: relative;
width: 90%;
margin: var(--r-block-margin) auto;
2023-05-23 19:50:14 +02:00
text-align: left;
font-size: 0.55em;
font-family: var(--r-code-font);
line-height: 1.2em;
2023-05-23 19:50:14 +02:00
word-wrap: break-word;
2023-05-23 19:50:14 +02:00
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}
.reveal code {
2023-05-23 19:50:14 +02:00
font-family: var(--r-code-font);
text-transform: none;
tab-size: 2;
}
.reveal pre code {
2023-05-23 19:50:14 +02:00
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal;
}
.reveal .code-wrapper {
2023-05-23 19:50:14 +02:00
white-space: normal;
}
.reveal .code-wrapper code {
2023-05-23 19:50:14 +02:00
white-space: pre;
}
.reveal table {
2023-05-23 19:50:14 +02:00
margin: auto;
border-collapse: collapse;
border-spacing: 0;
}
.reveal table th {
2023-05-23 19:50:14 +02:00
font-weight: bold;
}
.reveal table th,
.reveal table td {
2023-05-23 19:50:14 +02:00
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid;
}
.reveal table th[align="center"],
.reveal table td[align="center"] {
2023-05-23 19:50:14 +02:00
text-align: center;
}
.reveal table th[align="right"],
.reveal table td[align="right"] {
2023-05-23 19:50:14 +02:00
text-align: right;
}
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
2023-05-23 19:50:14 +02:00
border-bottom: none;
}
.reveal sup {
2023-05-23 19:50:14 +02:00
vertical-align: super;
font-size: smaller;
}
.reveal sub {
2023-05-23 19:50:14 +02:00
vertical-align: sub;
font-size: smaller;
}
.reveal small {
2023-05-23 19:50:14 +02:00
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top;
}
.reveal small * {
2023-05-23 19:50:14 +02:00
vertical-align: top;
2014-05-26 11:25:47 +02:00
}
.reveal img {
2023-05-23 19:50:14 +02:00
margin: var(--r-block-margin) 0;
}
/*********************************************
* LINKS
*********************************************/
2014-02-17 11:55:38 +01:00
.reveal a {
2023-05-23 19:50:14 +02:00
color: var(--r-link-color);
text-decoration: none;
transition: color 0.15s ease;
}
.reveal a:hover {
color: var(--r-link-color-hover);
text-shadow: none;
border: none;
}
.reveal .roll span:after {
2023-05-23 19:50:14 +02:00
color: #fff;
// background: darken( var(--r-link-color), 15% );
background: var(--r-link-color-dark);
}
/*********************************************
* Frame helper
*********************************************/
.reveal .r-frame {
2023-05-23 19:50:14 +02:00
border: 4px solid var(--r-main-color);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.reveal a .r-frame {
2023-05-23 19:50:14 +02:00
transition: all 0.15s linear;
}
.reveal a:hover .r-frame {
2023-05-23 19:50:14 +02:00
border-color: var(--r-link-color);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
2023-05-23 19:50:14 +02:00
color: var(--r-link-color);
}
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
2023-05-23 19:50:14 +02:00
background: rgba(0, 0, 0, 0.2);
color: var(--r-link-color);
}
/*********************************************
* PRINT BACKGROUND
*********************************************/
2023-05-23 19:50:14 +02:00
@media print {
.backgrounds {
background-color: var(--r-background-color);
}
}