$this->sassVariables['neutral-color'] = $this->theme->neutralColor;
// Breakpoints
$this->sassVariables['breakpoints'] = "(sm: (min: '576px',max: '575.98px') , md: (min: '768px',max: '767.98px'), lg: (min: '1024px',max: '1023.98px' ), xl: (min: '1200px', max: '1199.98px'))";
+ // Fonts size
+ $this->sassVariables['fonts-size'] = "(14: 20px, 16: 22px, 20: 28px, 24: 35px)";
$this->writeSass();
}
@media (min-width: $min-width)
@content
+
@mixin below($max-width)
@media (max-width: $max-width)
@content
+
@mixin breakpoint($breakpoint, $direction: min)
- //check if the supplied breakpoint exists in our breakpoits map
$breakpoint-values: map-get($breakpoints, $breakpoint)
$breakpoint: map-get($breakpoint-values, $direction)
- //check if we are writing styles for larger or smaller screens
-
@media (#{$direction}-width: $breakpoint)
@content
@if $align-items != false
align-items: $align-items
+
+
+@mixin font-size($size)
+ font-size: #{$size}px
+ line-height: map-get($fonts-size,$size)
+
#quiz
max-width: 1200px
margin: 0 auto
+
+.radius
+ border-radius: 16px
+
+.btn
+ padding: 12px
+ text-align: center
+ font-size: 20px
+ border: none
+ cursor: pointer
+ display: inline-block
+ &.primary
+ background: radial-gradient(at 16% 7px, rgba(255,102,186,1) 0%, rgba(208,22,124,1) 91%)
+ //&.secondary
+
#title
height: 80px
+ +flex-config(space-between,false,row,center)
#logo
height: 40px
--- /dev/null
+#welcome
+ max-width: 590px
+ margin: 0 auto
+ h2
+ margin: 0 0 12px
+ +font-size(20)
+ p
+ +font-size(16)
@import 100-global
@import 101-header
+@import 102-intro
<div class="screen" id="welcome">
<h2>{{$data->intro_title}}</h2>
<p>{{$data->intro_text}}</p>
- <a class="btn">{{$data->intro_button}} <span data-icon="running-man"></span></a>
+ <a class="btn primary radius">{{$data->intro_button}} <span data-icon="running-man"></span></a>
</div>
@endif
</div>