-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththeme.scss
163 lines (144 loc) · 3.74 KB
/
theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
// @import "../node_modules/bootstrap/scss/bootstrap";
@import "../node_modules/rfs/scss";
// Required
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";
@import "../node_modules/bootstrap/scss/mixins";
// Optional
// @import "../node_modules/bootstrap/scss/reboot";
// @import "../node_modules/bootstrap/scss/type";
// @import "../node_modules/bootstrap/scss/images";
// @import "../node_modules/bootstrap/scss/code";
@import "../node_modules/bootstrap/scss/grid";
@import "../node_modules/bootstrap/scss/containers";
@import"../node_modules/bootstrap/scss/bootstrap-utilities.scss";
////
/// @group breakpoints
////
/// small
$small: 320px !default;
/// large
$large: 1024px !default;
/// breakpoint map
$boostrap: (
small : 480px,
medium: 800px,
large : 1024px
) !default;
///
$foundation: (
small: 0,
medium: 640px,
large: 1024px,
xlarge: 1200px,
xxlarge: 1440px,
) !default;
$custom: (
xs : 480px,
sm: 640px,
md: 800px,
lg : 1024px,
xl: 1200px,
xxl: 1440px,
) !default;
// The mixin now takes a $min and $max attribute, which both default to a value of zero.
@mixin bp($class) {
// We check the type of value of the first passed it attribute, which in this case in $min. This helps us identify if we’re passing in a Bootstrap class or a custom width.
$type: type-of($class);
// If $min is a string the mixin assumes you’re passing
// in xs, sm, md, or lg as the attribute and it would execute the previous mixin cod
@if $type == string {
@if $class == xs {
@media (max-width: 480px) { @content; }
}
@else if $class == sm {
@media (min-width: 640px) { @content; }
}
@else if $class == md {
@media (min-width: 800px) { @content; }
}
@else if $class == lg {
@media (min-width: 1024px) { @content; }
}
@else if $class == xlg {
@media (min-width: 1200px) { @content; }
}
@else if $class == xxlg {
@media (min-width: 1440px) { @content; }
}
@else {
@warn "Breakpoint mixin supports: xs, sm, md, lg";
}
}
}
// The mixin now takes a $min and $max attribute, which both default to a value of zero.
@mixin mq($min: 0, $max: 0) {
$type: type-of($min);
//// Check id the type is a number
@if $type == number {
$query: "all" !default;
@if $min != 0 and $max != 0 {
$query: "(min-width: #{$min}) and (max-width: #{$max})";
}
@else if $min != 0 and $max == 0 {
$query: "(min-width: #{$min})";
}
@else if $min == 0 and $max != 0 {
$query: "(max-width: #{$max})";
}
@media #{$query} {
@content;
}
}
}
.language-javascript > .line.focus{
background: transparent !important;
// font-size: xx-large;
@include rfs(2rem, font-size);
// @include rfs(4rem, font-size);
color: #5cc4ea;
}
.reveal ul{ margin:0 !important;}
/* Fix Issue of hidden content still taking up space */
.fragment.fade-in-then-out:not(.current-fragment) {
display:none;
}
// Current Slide
.present{
.flex-slide{display:flex}
.column {display: flex;
flex-direction: column;
flex-basis: 100%;
flex: 4;
}
.double-column {
display: flex;
flex-direction: column;
flex-basis: 100%;
flex: 1;
}
h1, h2, h3, h4, h5, h6, p {
color:white;
}
img{
@include bp(sm){
max-height: 15rem;
}
@include bp(lg){
max-height: 15rem;
}
}
.flex-slide p.fragment{
// @include font-size(1rem);
@include rfs(2rem, font-size)
}
}
// #logo{}
.reveal.slide{
@extend .container-fluid;
.slides{
section.present{
//
}
}
}