jekyll-theme-experiment 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +5 -3
- data/_includes/footer.html +1 -1
- data/_includes/head.html +1 -0
- data/_includes/header.html +1 -1
- data/_includes/portfolio.html +22 -13
- data/_includes/tools.html +3 -3
- data/_layouts/home.html +2 -2
- data/_sass/experiment.scss +5 -5
- data/_sass/experiment/_reset.scss +2 -1
- data/_sass/experiment/modules/_nav_portafolio.scss +101 -0
- data/_sass/experiment/modules/_navbar.scss +43 -4
- data/assets/javascript/toggleMenu.js +47 -0
- data/assets/main.scss +1 -1
- metadata +5 -8
- data/_sass/experiment/modules/_project_portafolio.scss +0 -216
- data/_sass/experiment/sprite.png +0 -0
- data/_sass/experiment/sprite_2.png +0 -0
- data/_sass/experiment/sprite_2@2x.png +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ab8ef7959d726ed719afab719eeed01d7342c9cf7e5ec667d5d169c68804c0af
|
|
4
|
+
data.tar.gz: 81f842ad3df9db3b3cbf8c8ecbbdf7e533c7a9064ca2dce26bbae97b6262f8ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b72e647fbe8b69922502c64d3ff70505bc0481fb689a96d63d96a2161fdbe7fbe98df31ba6cb7a988278d257df2cfb67247224e0fa85ab918fb820bb5ef125d
|
|
7
|
+
data.tar.gz: 8e2091d0f90ddb8d87bc4adcd357e956b1bce86ac8c0fa2087de02c2186e8226b9ff0b52899f7f883e8b97e8bda839032769e88409a9ceb5f47ec93a21fdf68d
|
data/README.md
CHANGED
|
@@ -67,8 +67,8 @@ jekyll-theme-experiment allows you to customize the following sections in the ma
|
|
|
67
67
|
Add the following sample data to try it:
|
|
68
68
|
|
|
69
69
|
```yml
|
|
70
|
-
|
|
71
|
-
about:
|
|
70
|
+
jekyll-theme-experiment:
|
|
71
|
+
about: # optional
|
|
72
72
|
avatar: https://robohash.org/experiment-avatar.png?size=300x300
|
|
73
73
|
|
|
74
74
|
portfolio: # optional
|
|
@@ -84,7 +84,9 @@ theme_jekyll-theme-experiment:
|
|
|
84
84
|
img_relative_url: /assets/example.png
|
|
85
85
|
|
|
86
86
|
tools: # optional
|
|
87
|
-
|
|
87
|
+
title: Tools and Experience
|
|
88
|
+
icons:
|
|
89
|
+
- relative_url: /assets/icons/bitbucket/bitbucket-original.svg
|
|
88
90
|
```
|
|
89
91
|
|
|
90
92
|
By default, jekyll generates a couple markdown files, we'll need to make
|
data/_includes/footer.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="l-center-wrap icon-media">
|
|
3
3
|
{% if site.twitter_username %}<a href="https://twitter.com/{{site.twitter_username}}"><i class="fab fa-twitter-square fa-3x"></i></a>{% endif %}
|
|
4
4
|
{% if site.github_username %}<a href="https://github.com/{{site.github_username}}"><i class="fab fa-github-square fa-3x"></i></a>{% endif %}
|
|
5
|
-
{% if site.linkedin_username %}<a href="https://www.
|
|
5
|
+
{% if site.linkedin_username %}<a href="https://www.linkedin.com/in/{{site.linkedin_username}}"><i class="fab fa-linkedin fa-3x"></i></a>{% endif %}
|
|
6
6
|
{% if site.dribbble_username %}<a href="https://dribbble.com/{{ site.dribbble_username }}"><i class="fab fa-dribbble-square fa-3x"></i></a>{% endif %}
|
|
7
7
|
{% if site.envelope_username %}<a href="mailto:{{ site.envelope_username }}"><i class="fas fa-envelope-square fa-3x"></i></a>{% endif %}
|
|
8
8
|
{% if site.flickr_username %}<a href="https://flickr.com/{{ site.flickr_username }}"><i class="fab fa-flickr fa-3x"></i></a>{% endif %}
|
data/_includes/head.html
CHANGED
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
<title>{{ site.title }}</title>
|
|
5
5
|
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
|
6
6
|
<script defer src="{{ "/assets/fontawesome/js/fontawesome-all.min.js" | relative_url }}" ></script>
|
|
7
|
+
<script defer src="{{ "/assets/javascript/toggleMenu.js" | relative_url }}" ></script>
|
|
7
8
|
</head>
|
data/_includes/header.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<nav class="navbar">
|
|
2
2
|
{% assign default_paths = site.html_pages | map: "path" %}
|
|
3
3
|
{% assign page_paths = site.header_pages | default: default_paths %}
|
|
4
|
-
|
|
4
|
+
<span class="burguer-button" id='burguer-button'><i class="fas fa-bars"></i></span>
|
|
5
5
|
<div class="navbar-item">
|
|
6
6
|
{% for path in page_paths %}
|
|
7
7
|
{% assign my_page = site.html_pages | where: "path", path | first %}
|
data/_includes/portfolio.html
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
{% if site.
|
|
1
|
+
{% if site.jekyll-theme-experiment.portfolio %}
|
|
2
2
|
<div class="l-wrap">
|
|
3
3
|
<div class="l-center-column">
|
|
4
4
|
<hr class="hr-decorator">
|
|
5
|
-
<h1>{{ site.
|
|
5
|
+
<h1>{{ site.jekyll-theme-experiment.portfolio.title }}</h1>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="l-item">
|
|
8
|
-
{% for project in site.
|
|
8
|
+
{% for project in site.jekyll-theme-experiment.portfolio.projects %}
|
|
9
9
|
<div class="item-container-project">
|
|
10
10
|
<div class="item-project">
|
|
11
11
|
<img src="{{ project.img_relative_url | relative_url }}" alt="{{ project.name }}">
|
|
12
12
|
</div>
|
|
13
13
|
<div class="content-hamburger-menu">
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
<div class="information-project">
|
|
15
|
+
<ul>
|
|
16
|
+
<li>
|
|
17
|
+
<a class="icon" id="toggle-{{ forloop.index }}">
|
|
18
|
+
<i class="fas fa-bars"></i>
|
|
19
|
+
</a>
|
|
20
|
+
</li>
|
|
21
|
+
<li>
|
|
22
|
+
<h3>{{ project.name }}</h3>
|
|
23
|
+
</li>
|
|
24
|
+
</ul>
|
|
25
|
+
</div>
|
|
26
|
+
<nav class="nav-links nav-{{ forloop.index }}">
|
|
27
|
+
<a class="nav-item" href="{{ project.link }}" target="_blank">
|
|
28
|
+
<i class="fas fa-link"></i>
|
|
29
|
+
</a>
|
|
30
|
+
<a class="nav-item" href="{{ project.github }}" target="_blank">
|
|
31
|
+
<i class="fab fa-github-alt"></i>
|
|
32
|
+
</a>
|
|
24
33
|
</nav>
|
|
25
34
|
</div>
|
|
26
35
|
</div>
|
data/_includes/tools.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{% if site.
|
|
1
|
+
{% if site.jekyll-theme-experiment.tools %}
|
|
2
2
|
<div class="l-wrap">
|
|
3
3
|
<div class="l-center-column">
|
|
4
4
|
<hr class="hr-decorator">
|
|
5
|
-
<h1>
|
|
5
|
+
<h1>{{ site.jekyll-theme-experiment.tools.title }}</h1>
|
|
6
6
|
</div>
|
|
7
7
|
<div class="content-tools">
|
|
8
|
-
{% for tool in site.
|
|
8
|
+
{% for tool in site.jekyll-theme-experiment.tools.icons %}
|
|
9
9
|
<img src="{{ tool.relative_url | relative_url }}" alt="">
|
|
10
10
|
{% endfor %}
|
|
11
11
|
</div>
|
data/_layouts/home.html
CHANGED
|
@@ -12,9 +12,9 @@ layout: default
|
|
|
12
12
|
<h3>{{ site.description }}</h3>
|
|
13
13
|
{% endif %}
|
|
14
14
|
</div>
|
|
15
|
-
{% if site.
|
|
15
|
+
{% if site.jekyll-theme-experiment.about.avatar %}
|
|
16
16
|
<div class="avatar">
|
|
17
|
-
<img src="{{ site.
|
|
17
|
+
<img src="{{ site.jekyll-theme-experiment.about.avatar }}" alt="avatar">
|
|
18
18
|
</div>
|
|
19
19
|
{% endif %}
|
|
20
20
|
</div>
|
data/_sass/experiment.scss
CHANGED
|
@@ -34,11 +34,11 @@ $on-laptop: 800px !default;
|
|
|
34
34
|
"experiment/syntax-highlighting",
|
|
35
35
|
"experiment/layout",
|
|
36
36
|
//components
|
|
37
|
-
"experiment/modules/information-box",
|
|
38
|
-
"experiment/modules/navbar",
|
|
39
37
|
"experiment/modules/avatar",
|
|
40
|
-
"experiment/modules/project_portafolio",
|
|
41
38
|
"experiment/modules/content_tools",
|
|
42
|
-
"experiment/modules/
|
|
43
|
-
"experiment/modules/
|
|
39
|
+
"experiment/modules/hr",
|
|
40
|
+
"experiment/modules/information-box",
|
|
41
|
+
"experiment/modules/nav_portafolio",
|
|
42
|
+
"experiment/modules/navbar",
|
|
43
|
+
"experiment/modules/post"
|
|
44
44
|
;
|
|
@@ -41,6 +41,7 @@ ul, ol, dl, figure,
|
|
|
41
41
|
*/
|
|
42
42
|
ul, ol {
|
|
43
43
|
margin-left: $spacing-unit;
|
|
44
|
+
list-style: none;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
li {
|
|
@@ -70,7 +71,7 @@ h2 {
|
|
|
70
71
|
a {
|
|
71
72
|
color: $brand-color;
|
|
72
73
|
text-decoration: none;
|
|
73
|
-
|
|
74
|
+
cursor: pointer;
|
|
74
75
|
&:hover {
|
|
75
76
|
color: $grey-color-dark;
|
|
76
77
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.item-container-project {
|
|
2
|
+
background-color: $background-color;
|
|
3
|
+
margin: $spacing-unit;
|
|
4
|
+
width: 400px;
|
|
5
|
+
height: 285px;
|
|
6
|
+
|
|
7
|
+
@media screen and (max-width: $on-phone) {
|
|
8
|
+
width: 300px;
|
|
9
|
+
height: 180px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.item-project {
|
|
13
|
+
height: 215px;
|
|
14
|
+
@media screen and (max-width: $on-phone) {
|
|
15
|
+
height: 115px;
|
|
16
|
+
}
|
|
17
|
+
img {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.content-hamburger-menu {
|
|
24
|
+
width: 400px;
|
|
25
|
+
height: 285px;
|
|
26
|
+
box-shadow: 0 0 1em $grey-color;
|
|
27
|
+
position: relative;
|
|
28
|
+
top: -215px;
|
|
29
|
+
transition: .3s;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
|
|
32
|
+
@media screen and (max-width: $on-phone) {
|
|
33
|
+
height: 180px;
|
|
34
|
+
top: -115px;
|
|
35
|
+
width: 300px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.information-project {
|
|
39
|
+
background-color: $purple-color;
|
|
40
|
+
bottom: 0px;
|
|
41
|
+
color: $brand-color;
|
|
42
|
+
height: 70px;
|
|
43
|
+
line-height: 70px;
|
|
44
|
+
position: absolute;
|
|
45
|
+
width: 100%;
|
|
46
|
+
z-index: 10;
|
|
47
|
+
@media screen and (max-width: $on-phone) {
|
|
48
|
+
height: 30px;
|
|
49
|
+
line-height: 30px;
|
|
50
|
+
font-size: $spacing-unit / 2;
|
|
51
|
+
}
|
|
52
|
+
ul {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
h3 {
|
|
56
|
+
margin-right: $spacing-unit;
|
|
57
|
+
}
|
|
58
|
+
.icon:hover {
|
|
59
|
+
color: $grey-color-light;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.nav-links {
|
|
64
|
+
align-items: center;
|
|
65
|
+
bottom: -285px;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
height: 215px;
|
|
69
|
+
// display: inline-block;
|
|
70
|
+
position: relative;
|
|
71
|
+
// pointer-events: none;
|
|
72
|
+
// z-index: 1;
|
|
73
|
+
background-color: $purple-color-transparent;
|
|
74
|
+
transition: .3s;
|
|
75
|
+
@media screen and (max-width: $on-phone) {
|
|
76
|
+
height: 160px;
|
|
77
|
+
}
|
|
78
|
+
.nav-item {
|
|
79
|
+
position: relative;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
// float: left;
|
|
82
|
+
// clear: both;
|
|
83
|
+
// color: transparent;
|
|
84
|
+
font-size: 14px;
|
|
85
|
+
padding: 30px;
|
|
86
|
+
letter-spacing: -6.2px;
|
|
87
|
+
height: 7px;
|
|
88
|
+
line-height: 7px;
|
|
89
|
+
text-transform: uppercase;
|
|
90
|
+
&:hover {
|
|
91
|
+
color: $grey-color-light;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
@for $i from 1 through $projects {
|
|
96
|
+
.active_nav-#{$i} {
|
|
97
|
+
bottom: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
.navbar {
|
|
2
|
+
background-color: $purple-color;
|
|
2
3
|
box-shadow: 0 0 0.2em $grey-color;
|
|
4
|
+
height: 70px;
|
|
5
|
+
line-height: 70px;
|
|
3
6
|
position: fixed;
|
|
4
7
|
text-align: right;
|
|
5
|
-
background-color: $purple-color;
|
|
6
8
|
width: 100%;
|
|
7
|
-
z-index:
|
|
9
|
+
z-index: 100;
|
|
8
10
|
.navbar-item {
|
|
9
|
-
padding: $spacing-unit / 2;
|
|
10
11
|
text-transform: uppercase;
|
|
11
12
|
& > a {
|
|
12
13
|
font-weight: bold;
|
|
13
|
-
padding:
|
|
14
|
+
padding: $spacing-unit / 2;
|
|
14
15
|
}
|
|
15
16
|
& > a:hover {
|
|
16
17
|
color: $grey-color-light;
|
|
@@ -19,4 +20,42 @@
|
|
|
19
20
|
color: $grey-color-light;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
23
|
+
.burguer-button {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
@media screen and (max-width: $on-phone) {
|
|
27
|
+
.burguer-button {
|
|
28
|
+
margin: $spacing-unit / 2;
|
|
29
|
+
display: block;
|
|
30
|
+
color: $brand-color;
|
|
31
|
+
width: 40px;
|
|
32
|
+
line-height: 40px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
box-shadow: 0 0 0.3em $grey-color;
|
|
35
|
+
text-align: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.navbar-item {
|
|
39
|
+
background-color: $purple-color-transparent;
|
|
40
|
+
left: -100%;
|
|
41
|
+
position: fixed;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
align-items: center;
|
|
47
|
+
transition: .3s;
|
|
48
|
+
& > a {
|
|
49
|
+
padding: $spacing-unit / 2 $spacing-unit * 3;
|
|
50
|
+
border-bottom: solid 1px $brand-color;
|
|
51
|
+
}
|
|
52
|
+
& > a:first-child {
|
|
53
|
+
border-top: solid 1px $brand-color;
|
|
54
|
+
margin-top: $spacing-unit;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.active {
|
|
58
|
+
left: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
22
61
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function mediaQuery(query) {
|
|
2
|
+
let $button = document.querySelector('#burguer-button');
|
|
3
|
+
let navItem = document.querySelector('.navbar-item');
|
|
4
|
+
let element = 'active';
|
|
5
|
+
if (query.matches) {
|
|
6
|
+
$button.addEventListener('click', function() {
|
|
7
|
+
toggleMenu(navItem, $button, element)
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
$button.removeEventListener('click', function() {
|
|
11
|
+
toggleMenu(navItem, $button, element);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function toggleMenu(navItem, $button, element) {
|
|
17
|
+
let ico = $button.querySelector('svg');
|
|
18
|
+
if (navItem.classList.contains(element)){
|
|
19
|
+
navItem.classList.remove(element);
|
|
20
|
+
ico.classList.replace('fa-times-circle', 'fa-bars');
|
|
21
|
+
ico.setAttribute('data-icon', 'bars');
|
|
22
|
+
} else {
|
|
23
|
+
navItem.classList.add(element);
|
|
24
|
+
ico.classList.replace('fa-bars', 'fa-times-circle');
|
|
25
|
+
ico.setAttribute('data-icon', 'times-circle');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
window.onload = function() {
|
|
31
|
+
let query = window.matchMedia('(max-width: 500px)');
|
|
32
|
+
query.addListener(mediaQuery);
|
|
33
|
+
|
|
34
|
+
mediaQuery(query);
|
|
35
|
+
|
|
36
|
+
let all = document.querySelectorAll('.icon');
|
|
37
|
+
for (let i = 1; i < all.length + 1; i ++) {
|
|
38
|
+
let nav = document.querySelector('.nav-'+i);
|
|
39
|
+
let $button = document.querySelector('#toggle-'+ i);
|
|
40
|
+
let element = 'active_nav-'+i;
|
|
41
|
+
$button.addEventListener('click', function() {
|
|
42
|
+
toggleMenu(nav, $button, element);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
data/assets/main.scss
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-experiment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Angelina Moreno Robledo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -79,12 +79,9 @@ files:
|
|
|
79
79
|
- _sass/experiment/modules/_content_tools.scss
|
|
80
80
|
- _sass/experiment/modules/_hr.scss
|
|
81
81
|
- _sass/experiment/modules/_information-box.scss
|
|
82
|
+
- _sass/experiment/modules/_nav_portafolio.scss
|
|
82
83
|
- _sass/experiment/modules/_navbar.scss
|
|
83
84
|
- _sass/experiment/modules/_post.scss
|
|
84
|
-
- _sass/experiment/modules/_project_portafolio.scss
|
|
85
|
-
- _sass/experiment/sprite.png
|
|
86
|
-
- _sass/experiment/sprite_2.png
|
|
87
|
-
- _sass/experiment/sprite_2@2x.png
|
|
88
85
|
- assets/example.png
|
|
89
86
|
- assets/fontawesome/css/fa-svg-with-js.css
|
|
90
87
|
- assets/fontawesome/js/fa-brands.js
|
|
@@ -123,6 +120,7 @@ files:
|
|
|
123
120
|
- assets/icons/heroku/heroku-plain-wordmark.svg
|
|
124
121
|
- assets/icons/heroku/heroku-plain.svg
|
|
125
122
|
- assets/icons/heroku/heroku.eps
|
|
123
|
+
- assets/javascript/toggleMenu.js
|
|
126
124
|
- assets/main.scss
|
|
127
125
|
homepage: https://github.com/anxhe/jekyll-theme-experiment
|
|
128
126
|
licenses:
|
|
@@ -143,8 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
141
|
- !ruby/object:Gem::Version
|
|
144
142
|
version: '0'
|
|
145
143
|
requirements: []
|
|
146
|
-
|
|
147
|
-
rubygems_version: 2.6.13
|
|
144
|
+
rubygems_version: 3.1.4
|
|
148
145
|
signing_key:
|
|
149
146
|
specification_version: 4
|
|
150
147
|
summary: This is a jekyll theme made with love
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
$transition-duration: 0.5s;
|
|
2
|
-
$transition-delay: 0.05s;
|
|
3
|
-
$items: 2;
|
|
4
|
-
|
|
5
|
-
.item-container-project {
|
|
6
|
-
background-color: $background-color;
|
|
7
|
-
margin: $spacing-unit;
|
|
8
|
-
width: 400px;
|
|
9
|
-
height: 285px;
|
|
10
|
-
@media screen and (max-width: $on-phone) {
|
|
11
|
-
width: 300px;
|
|
12
|
-
height: 180px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.item-project {
|
|
16
|
-
height: 215px;
|
|
17
|
-
@media screen and (max-width: $on-phone) {
|
|
18
|
-
height: 115px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
img {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.content-hamburger-menu {
|
|
28
|
-
width: 400px;
|
|
29
|
-
height: 285px;
|
|
30
|
-
box-shadow: 0 0 1em $grey-color;
|
|
31
|
-
position: relative;
|
|
32
|
-
top: -215px;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
@media screen and (max-width: $on-phone) {
|
|
35
|
-
height: 180px;
|
|
36
|
-
top: -115px;
|
|
37
|
-
width: 300px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.information-project {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 70px;
|
|
43
|
-
background-color: $purple-color;
|
|
44
|
-
display: block;
|
|
45
|
-
bottom: 0px;
|
|
46
|
-
position: absolute;
|
|
47
|
-
@media screen and (max-width: $on-phone) {
|
|
48
|
-
height: 30px;
|
|
49
|
-
}
|
|
50
|
-
h3 {
|
|
51
|
-
color: $brand-color;
|
|
52
|
-
text-align: end;
|
|
53
|
-
margin: 15px 15px 0 0;
|
|
54
|
-
@media screen and (max-width: $on-phone) {
|
|
55
|
-
font-size: 17px;
|
|
56
|
-
margin: 0 5px 0 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@for $i from 1 through $projects {
|
|
62
|
-
#toggle-#{$i} {
|
|
63
|
-
position: absolute;
|
|
64
|
-
visibility: hidden;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Styles for the 'open' state, if the checkbox is checked
|
|
68
|
-
#toggle-#{$i}:checked {
|
|
69
|
-
// Any element you need to change the style if menu is open goes here, using the sibling selector (~) as follows
|
|
70
|
-
// Making the "X" icon using `:before` and `:after` pseudo-elements
|
|
71
|
-
& ~ .toggle-container .button-toggle {
|
|
72
|
-
box-shadow: 0 0 0 450px $purple-color-transparent, inset 0 0 0 20px $purple-color-transparent;
|
|
73
|
-
&:before {
|
|
74
|
-
transform: translateY(50%) rotate(45deg) scale(1);
|
|
75
|
-
}
|
|
76
|
-
&:after {
|
|
77
|
-
transform: translateY(-50%) rotate(-45deg) scale(1);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Open nav
|
|
82
|
-
& ~ .nav {
|
|
83
|
-
background: transparent;
|
|
84
|
-
pointer-events: all;
|
|
85
|
-
transform: translate(130px, -130px);
|
|
86
|
-
// Restoring nav items from "lines" in the menu icon
|
|
87
|
-
.nav-item {
|
|
88
|
-
font-size: 20px;
|
|
89
|
-
color: $brand-color;
|
|
90
|
-
letter-spacing: 0;
|
|
91
|
-
height: 40px;
|
|
92
|
-
line-height: 40px;
|
|
93
|
-
margin-top: 0;
|
|
94
|
-
opacity: 1;
|
|
95
|
-
transform: scaleY(1);
|
|
96
|
-
transition: $transition-duration, opacity 0.1s;
|
|
97
|
-
|
|
98
|
-
&:hover {
|
|
99
|
-
color: $grey-color-light;
|
|
100
|
-
}
|
|
101
|
-
// Hiding the lines
|
|
102
|
-
&:before {
|
|
103
|
-
opacity: 0;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.button-toggle {
|
|
111
|
-
position: absolute;
|
|
112
|
-
top: 215px;
|
|
113
|
-
display: inline-block;
|
|
114
|
-
width: 20px;
|
|
115
|
-
height: 20px;
|
|
116
|
-
margin: 25px;
|
|
117
|
-
background-color: transparent;
|
|
118
|
-
border: none;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
border-radius: 100%;
|
|
121
|
-
transition: $transition-duration + 0.1;
|
|
122
|
-
z-index: 1;
|
|
123
|
-
@media screen and (max-width: 400px) {
|
|
124
|
-
top: 128px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Making the "X" icon using `:before` and `:after` pseudo-elements
|
|
128
|
-
// Initially hidden because `scale(0)` transformation
|
|
129
|
-
|
|
130
|
-
&:before, &:after {
|
|
131
|
-
position: absolute;
|
|
132
|
-
content: '';
|
|
133
|
-
top: 50%;
|
|
134
|
-
left: 0;
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 2px;
|
|
137
|
-
background-color: $brand-color;
|
|
138
|
-
border-radius: 5px;
|
|
139
|
-
transition: $transition-duration;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&:before {
|
|
143
|
-
transform: translateY(50%) rotate(45deg) scale(0);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:after {
|
|
147
|
-
transform: translateY(-50%) rotate(-45deg) scale(0);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.nav {
|
|
152
|
-
display: inline-block;
|
|
153
|
-
position: relative;
|
|
154
|
-
top: 215px;
|
|
155
|
-
margin: 25px 25px 20px;
|
|
156
|
-
// Don't want pointer-events as menu is closed
|
|
157
|
-
pointer-events: none;
|
|
158
|
-
transition: $transition-duration;
|
|
159
|
-
z-index: 1;
|
|
160
|
-
@media screen and (max-width: 400px) {
|
|
161
|
-
top: 132px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// Showing nav items as lines, making up the hamburger menu icon
|
|
165
|
-
.nav-item {
|
|
166
|
-
position: relative;
|
|
167
|
-
display: inline-block;
|
|
168
|
-
float: left;
|
|
169
|
-
clear: both;
|
|
170
|
-
color: transparent;
|
|
171
|
-
font-size: 14px;
|
|
172
|
-
letter-spacing: -6.2px;
|
|
173
|
-
height: 7px;
|
|
174
|
-
line-height: 7px;
|
|
175
|
-
text-transform: uppercase;
|
|
176
|
-
white-space: nowrap;
|
|
177
|
-
transform: scaleY(0.2);
|
|
178
|
-
transition: $transition-duration, opacity 1s;
|
|
179
|
-
|
|
180
|
-
// Setting delays for the nav items in close transition
|
|
181
|
-
@for $i from 1 through $items {
|
|
182
|
-
&:nth-child(#{$i}) {
|
|
183
|
-
$delay: ($i - 1) * $transition-delay;
|
|
184
|
-
transition-delay: $delay;
|
|
185
|
-
&:before {
|
|
186
|
-
transition-delay: $delay;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// Adjusting width for the first line
|
|
192
|
-
&:nth-child(1) {
|
|
193
|
-
letter-spacing: -8px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// Adjusting width for the second line
|
|
197
|
-
&:nth-child(2) {
|
|
198
|
-
letter-spacing: -7px;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Getting the lines for the hamburger menu icon
|
|
202
|
-
&:before {
|
|
203
|
-
position: absolute;
|
|
204
|
-
content: '';
|
|
205
|
-
top: 50%;
|
|
206
|
-
left: 0;
|
|
207
|
-
width: 100%;
|
|
208
|
-
height: 2px;
|
|
209
|
-
background-color: $brand-color;
|
|
210
|
-
transform: translateY(-50%) scaleY(5);
|
|
211
|
-
transition: $transition-duration;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
data/_sass/experiment/sprite.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|