seriously_simple_static_starter 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/header.html +2 -1
- data/_sass/_header.scss +20 -0
- data/_sass/_navbar.scss +0 -22
- data/_sass/_variables.scss +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bc3b0d1f08347f98e818be7b19cca9a35ed8be3240435102d4f4ceff378422e
|
4
|
+
data.tar.gz: 83bdca7c5b34738f793f91127ffafa179a8e170a2ec4845c91e16e242f3821bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d260e44afc1e47affaf9c5da433d17b03082323f8abd4815b73686027e1ccba985150aa614d1e67f7f7c8388c1fa05f1e8b2eb4b9a0913f877d6deaee1e816ed
|
7
|
+
data.tar.gz: 16778b32b218e98d502e015d26f9c613caec22f27da65deddf2431915a51118f25d3504aef7c80ec89a4815c075521d6755c9cdfe2c0bebe9c5731c3da091f60
|
data/_includes/header.html
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
<header class="{% if include.object.image %}background_image{%
|
1
|
+
<header class="{% if include.object.image %}background_image{% elsif include.object.background_color %}{% elsif include.object.svg_background %}svg{% endif%}"
|
2
|
+
{% if include.object.background_color %}style="background-color:{{include.object.background_color}}"{% endif %}>
|
2
3
|
{% if include.object.image %}
|
3
4
|
{% assign header_image_path = include.object.image.path | replace: '/assets/images', '' %}
|
4
5
|
{% picture header_image {{header_image_path}} alt=include.object.image.alt%}
|
data/_sass/_header.scss
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
header {
|
2
|
+
overflow:hidden;
|
3
|
+
height: auto;
|
4
|
+
background-color: $primary;
|
2
5
|
.jumbotron {
|
6
|
+
background-color: transparent;
|
7
|
+
padding-left: 0px;
|
8
|
+
padding-right:0px;
|
3
9
|
h1 {
|
4
10
|
padding-top:100px;
|
5
11
|
}
|
@@ -12,4 +18,18 @@ header {
|
|
12
18
|
}
|
13
19
|
}
|
14
20
|
}
|
21
|
+
&.svg {
|
22
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' enable-background='new 0 0 2560 1600' version='1.1' viewBox='0 0 2560 1600' xml:space='preserve'%3E%3Cstyle xmlns='http://www.w3.org/2000/svg' type='text/css'%3E .st0%7Bfill:%23000;%7D .st1%7Bfill:url(%23a);%7D polygon%7Bfill:%231b1b1b%7D;%0A%3C/style%3E%3Cpattern id='a' width='319.998' height='319.998' overflow='visible' patternUnits='userSpaceOnUse' viewBox='0 -399.997 319.998 319.998'%3E%3Crect class='st0' y='-400' width='320' height='320'/%3E%3Cpolygon points='240 -79.999 240 0 160 -79.999 160 -160'/%3E%3Cpolygon points='320 -160 240 -79.999 240 -160'/%3E%3Cpolygon points='79.999 -79.999 79.999 0 0 -79.999 0 -160'/%3E%3Cpolygon points='160 -160 79.999 -79.999 79.999 -160'/%3E%3Cpolygon points='320 -240 320 -160 240 -240 240 -320'/%3E%3Cpolygon points='160 -240 160 -160 79.999 -240 79.999 -320'/%3E%3Cpolygon points='240 -320 160 -240 160 -320'/%3E%3Cpolygon points='240 -240 240 -160 160 -160'/%3E%3Cpolygon points='79.999 -320 0 -240 0 -320'/%3E%3Cpolygon points='79.999 -240 79.999 -160 0 -160'/%3E%3Cpolygon points='240 -400 240 -320 160 -400 160 -480'/%3E%3Cpolygon points='320 -400 320 -320 240 -320'/%3E%3Cpolygon points='79.999 -400 79.999 -320 0 -400 0 -480'/%3E%3Cpolygon points='160 -400 160 -320 79.999 -320'/%3E%3C/pattern%3E%3Crect class='st1' width='2560' height='1600'/%3E%3C/svg%3E");
|
23
|
+
}
|
24
|
+
&.background_image {
|
25
|
+
background: transparent !important;
|
26
|
+
img.header__image {
|
27
|
+
filter: brightness(0.4);
|
28
|
+
position: absolute;
|
29
|
+
z-index: -1;
|
30
|
+
height: 100%;
|
31
|
+
width: 100%;
|
32
|
+
object-fit: cover;
|
33
|
+
}
|
34
|
+
}
|
15
35
|
}
|
data/_sass/_navbar.scss
CHANGED
@@ -1,25 +1,3 @@
|
|
1
|
-
|
2
|
-
header {
|
3
|
-
overflow:hidden;
|
4
|
-
height: auto;
|
5
|
-
background-color: $primary;
|
6
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' enable-background='new 0 0 2560 1600' version='1.1' viewBox='0 0 2560 1600' xml:space='preserve'%3E%3Cstyle xmlns='http://www.w3.org/2000/svg' type='text/css'%3E .st0%7Bfill:%23000;%7D .st1%7Bfill:url(%23a);%7D polygon%7Bfill:%231b1b1b%7D;%0A%3C/style%3E%3Cpattern id='a' width='319.998' height='319.998' overflow='visible' patternUnits='userSpaceOnUse' viewBox='0 -399.997 319.998 319.998'%3E%3Crect class='st0' y='-400' width='320' height='320'/%3E%3Cpolygon points='240 -79.999 240 0 160 -79.999 160 -160'/%3E%3Cpolygon points='320 -160 240 -79.999 240 -160'/%3E%3Cpolygon points='79.999 -79.999 79.999 0 0 -79.999 0 -160'/%3E%3Cpolygon points='160 -160 79.999 -79.999 79.999 -160'/%3E%3Cpolygon points='320 -240 320 -160 240 -240 240 -320'/%3E%3Cpolygon points='160 -240 160 -160 79.999 -240 79.999 -320'/%3E%3Cpolygon points='240 -320 160 -240 160 -320'/%3E%3Cpolygon points='240 -240 240 -160 160 -160'/%3E%3Cpolygon points='79.999 -320 0 -240 0 -320'/%3E%3Cpolygon points='79.999 -240 79.999 -160 0 -160'/%3E%3Cpolygon points='240 -400 240 -320 160 -400 160 -480'/%3E%3Cpolygon points='320 -400 320 -320 240 -320'/%3E%3Cpolygon points='79.999 -400 79.999 -320 0 -400 0 -480'/%3E%3Cpolygon points='160 -400 160 -320 79.999 -320'/%3E%3C/pattern%3E%3Crect class='st1' width='2560' height='1600'/%3E%3C/svg%3E"); .jumbotron {
|
7
|
-
background-color: transparent;
|
8
|
-
padding-left: 0px;
|
9
|
-
padding-right:0px;
|
10
|
-
}
|
11
|
-
&.background_image {
|
12
|
-
background: transparent !important;
|
13
|
-
img.header__image {
|
14
|
-
filter: brightness(0.4);
|
15
|
-
position: absolute;
|
16
|
-
z-index: -1;
|
17
|
-
height: 100%;
|
18
|
-
width: 100%;
|
19
|
-
object-fit: cover;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
1
|
// Animations for the dropdown menu
|
24
2
|
@-webkit-keyframes fadeInUp {
|
25
3
|
from {
|
data/_sass/_variables.scss
CHANGED