jekyll-theme-basically-basic 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,177 +1,132 @@
1
- /* ==========================================================================
2
- Sidebar
3
- ========================================================================== */
4
-
5
- .sidebar {
6
- position: fixed;
7
- top: 0;
8
- left: 0;
9
- width: 100%;
10
- height: 100%;
11
- overflow: hidden;
12
- z-index: 150;
13
- pointer-events: none;
14
-
15
- /* page overlay dimmer */
16
- &::after {
17
- display: block;
18
- position: absolute;
19
- top: 0;
20
- left: 0;
21
- width: 100%;
22
- height: 100%;
23
- transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1);
24
- background: rgba($base-color, 0.5);
25
- content: '';
26
- opacity: 0;
27
- pointer-events: none;
28
- will-change: opacity;
29
- }
30
-
31
- li {
32
- transform: translateX(-1rem);
33
- transition: all 0.5s;
34
- opacity: 0;
35
-
36
- &.is--moved {
37
- transform: translateX(0);
38
- opacity: 1;
39
- }
40
-
41
- /* line hover effect */
42
- a {
43
- position: relative;
44
- color: $base-color;
45
-
46
- &::before {
47
- display: block;
48
- position: absolute;
49
- top: 50%;
50
- left: -3rem;
51
- width: 0;
52
- height: 1px;
53
- transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
54
- background-color: $base-color;
55
- content: '';
56
- }
57
-
58
- &:hover {
59
- color: $accent-color;
60
- }
61
-
62
- &:hover::before {
63
- width: 2.5rem;
64
- }
65
- }
66
- }
67
-
68
- &.is--visible {
69
- transform: translateX(0);
70
-
71
- &::after {
72
- opacity: 1;
73
- pointer-events: auto;
74
- }
75
-
76
- > .inner {
77
- transform: none;
78
- box-shadow: 0 1em 5em 0 rgba(0, 0, 0, 0.125);
79
- }
80
-
81
- &.is--animatable > .inner {
82
- transition: all 330ms ease-out;
83
- }
84
- }
85
-
86
- &.is--animatable > .inner {
87
- transition: all 130ms ease-in;
88
- }
89
-
90
- > .inner {
91
- position: relative;
92
- width: 100%;
93
- max-width: $sidebar-width;
94
- height: 100%;
95
- padding: 1.5em;
96
- transform: translateX(-1 * $sidebar-width);
97
- background-color: $sidebar-background-color;
98
- box-shadow: none;
99
- z-index: 160;
100
- will-change: transform;
101
- overflow-x: hidden;
102
- pointer-events: auto;
103
-
104
- @include breakpoint($medium) {
105
- padding: 3rem;
106
- }
107
-
108
- @include breakpoint($large) {
109
- max-width: (1.5 * $sidebar-width);
110
- transform: translateX(-1.5 * $sidebar-width);
111
- }
112
- }
113
-
114
- .menu {
115
- @include fluid-type($min-vw, $max-vw, 24px, 48px);
116
- position: relative;
117
- margin-bottom: 1.5rem;
118
- padding-bottom: 0.5rem;
119
- font-weight: bold;
120
- line-height: 1;
121
-
122
- a {
123
- display: block;
124
- }
125
-
126
- /* divider line */
127
- &::after {
128
- position: absolute;
129
- bottom: 0;
130
- width: 1.5em;
131
- height: 1px;
132
- background-color: $base-color;
133
- content: '';
134
- }
135
-
136
- li {
137
- margin-bottom: 1.5rem;
138
- }
139
- }
140
-
141
- .contact-list {
142
- @include fluid-type($min-vw, $max-vw, 18px, 24px);
143
- margin-top: 0.5rem;
144
- padding-top: 0.5rem;
145
-
146
- li:not(:last-child) {
147
- margin-bottom: 0.5rem;
148
- }
149
-
150
- a {
151
- display: block;
152
- color: $base-color;
153
- text-decoration: none;
154
- }
155
- }
156
- }
157
-
158
- .sidebar-toggle-wrapper {
159
- position: fixed;
160
- top: 0.675rem;
161
- right: 0;
162
- cursor: pointer;
163
- z-index: 10000;
164
-
165
- .toggle {
166
- display: flex;
167
- align-items: center;
168
- color: inherit;
169
- text-decoration: none;
170
- }
171
- }
172
-
173
- .sidebar-toggle-label {
174
- order: 2;
175
- margin-left: 0.5rem;
176
- font-weight: bold;
177
- }
1
+ /* ==========================================================================
2
+ Sidebar
3
+ ========================================================================== */
4
+
5
+ .sidebar {
6
+ position: fixed;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ max-width: $sidebar-width;
11
+ height: 100%;
12
+ z-index: 50;
13
+
14
+ @include breakpoint($large) {
15
+ max-width: (1.5 * $sidebar-width);
16
+ }
17
+
18
+ li {
19
+ transform: translateX(-1rem);
20
+ transition: all 0.5s;
21
+ opacity: 0;
22
+
23
+ &.is--moved {
24
+ transform: translateX(0);
25
+ opacity: 1;
26
+ }
27
+
28
+ /* line hover effect */
29
+ a {
30
+ position: relative;
31
+ color: $base-color;
32
+
33
+ &::before {
34
+ display: block;
35
+ position: absolute;
36
+ top: 50%;
37
+ left: -3rem;
38
+ width: 0;
39
+ height: 1px;
40
+ transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
41
+ background-color: $base-color;
42
+ content: '';
43
+ }
44
+
45
+ &:hover {
46
+ color: $accent-color;
47
+ }
48
+
49
+ &:hover::before {
50
+ width: 2.5rem;
51
+ }
52
+ }
53
+ }
54
+
55
+ > .inner {
56
+ width: 100%;
57
+ height: 100%;
58
+ padding: 1.5em;
59
+ background-color: $sidebar-background-color;
60
+ overflow-x: hidden;
61
+ box-shadow: inset -1em 0 5em 0 rgba(0, 0, 0, 0.125);
62
+
63
+ @include breakpoint($medium) {
64
+ padding: 3rem;
65
+ }
66
+ }
67
+
68
+ .menu {
69
+ @include fluid-type($min-vw, $max-vw, 24px, 48px);
70
+ position: relative;
71
+ margin-bottom: 1.5rem;
72
+ padding-bottom: 0.5rem;
73
+ font-weight: bold;
74
+ line-height: 1;
75
+
76
+ a {
77
+ display: block;
78
+ }
79
+
80
+ /* divider line */
81
+ &::after {
82
+ position: absolute;
83
+ bottom: 0;
84
+ width: 1.5em;
85
+ height: 1px;
86
+ background-color: $base-color;
87
+ content: '';
88
+ }
89
+
90
+ li {
91
+ margin-bottom: 1.5rem;
92
+ }
93
+ }
94
+
95
+ .contact-list {
96
+ @include fluid-type($min-vw, $max-vw, 18px, 24px);
97
+ margin-top: 0.5rem;
98
+ padding-top: 0.5rem;
99
+
100
+ li:not(:last-child) {
101
+ margin-bottom: 0.5rem;
102
+ }
103
+
104
+ a {
105
+ display: block;
106
+ color: $base-color;
107
+ text-decoration: none;
108
+ }
109
+ }
110
+ }
111
+
112
+ .sidebar-toggle-wrapper {
113
+ position: fixed;
114
+ top: 0.675rem;
115
+ right: 0;
116
+ cursor: pointer;
117
+ z-index: 10000;
118
+
119
+ .toggle-inner {
120
+ display: -ms-flexbox;
121
+ display: flex;
122
+ -ms-flex-align: center;
123
+ align-items: center;
124
+ }
125
+ }
126
+
127
+ .sidebar-toggle-label {
128
+ -ms-flex-order: 2;
129
+ order: 2;
130
+ margin-left: 0.5rem;
131
+ font-weight: bold;
132
+ }
@@ -12,14 +12,6 @@ table {
12
12
  word-break: keep-all;
13
13
  }
14
14
 
15
- thead {
16
-
17
- th,
18
- td {
19
- background-color: tint($base-color, 80%);
20
- }
21
- }
22
-
23
15
  th,
24
16
  td {
25
17
  border-bottom: 1px solid $border-color;
@@ -2,17 +2,6 @@
2
2
  Accessibility Modules
3
3
  ========================================================================== */
4
4
 
5
- /* Skip links */
6
- .skip-links {
7
- margin: 0;
8
-
9
- li {
10
- width: 0;
11
- height: 0;
12
- list-style: none;
13
- }
14
- }
15
-
16
5
  /* Text meant only for screen readers */
17
6
  .screen-reader-text,
18
7
  .screen-reader-text span,
@@ -53,12 +53,10 @@ a img.align-left {
53
53
  ========================================================================== */
54
54
 
55
55
  .is--pushed {
56
-
57
- @include breakpoint($medium) {
58
- padding-left: $sidebar-width;
59
- }
56
+ transform: translateX(1 * $sidebar-width);
57
+ transform-origin: right;
60
58
 
61
59
  @include breakpoint($large) {
62
- padding-left: (1.5 * $sidebar-width);
60
+ transform: translateX(1.5 * $sidebar-width);
63
61
  }
64
62
  }
@@ -1,57 +1,57 @@
1
- ---
2
- ---
3
-
4
- /*!
5
- * Basically Basic Jekyll Theme 1.0.1
6
- * Copyright 2017 Michael Rose - mademistakes | @mmistakes
7
- * Free for personal and commercial use under the MIT license
8
- * https://github.com/mmistakes/jekyll-basically-theme/blob/master/LICENSE.md
9
- */
10
-
11
- // Animate sidebar menu items
12
- var menuItems = document.querySelectorAll('#sidebar li');
13
-
14
- // Get vendor transition property
15
- var docElemStyle = document.documentElement.style;
16
- var transitionProp = typeof docElemStyle.transition == 'string' ?
17
- 'transition' : 'WebkitTransition';
18
-
19
- function animateMenuItems() {
20
- for ( var i=0; i < menuItems.length; i++ ) {
21
- var item = menuItems[i];
22
- // Stagger transition with transitionDelay
23
- item.style[ transitionProp + 'Delay' ] = ( i * 75 ) + 'ms';
24
- item.classList.toggle('is--moved');
25
- }
26
- };
27
-
28
- // Toggle sidebar visibility
29
- function toggleClassMenu() {
30
- myMenu.classList.add('is--animatable');
31
- if(!myMenu.classList.contains('is--visible')) {
32
- myMenu.classList.add('is--visible');
33
- myToggle.classList.add('open');
34
- myWrapper.classList.add('is--pushed');
35
- } else {
36
- myMenu.classList.remove('is--visible');
37
- myToggle.classList.remove('open');
38
- myWrapper.classList.remove('is--pushed');
39
- }
40
- }
41
-
42
- function OnTransitionEnd() {
43
- myMenu.classList.remove('is--animatable');
44
- }
45
-
46
- var myWrapper = document.querySelector('.wrapper');
47
- var myMenu = document.querySelector('.sidebar');
48
- var myToggle = document.querySelector('.toggle');
49
- myMenu.addEventListener('transitionend', OnTransitionEnd, false);
50
- myToggle.addEventListener('click', function() {
51
- toggleClassMenu();
52
- animateMenuItems();
53
- }, false);
54
- myMenu.addEventListener('click', function() {
55
- toggleClassMenu();
56
- animateMenuItems();
57
- }, false);
1
+ ---
2
+ ---
3
+
4
+ /*!
5
+ * Basically Basic Jekyll Theme 1.1.0
6
+ * Copyright 2017 Michael Rose - mademistakes | @mmistakes
7
+ * Free for personal and commercial use under the MIT license
8
+ * https://github.com/mmistakes/jekyll-basically-theme/blob/master/LICENSE.md
9
+ */
10
+
11
+ // Animate sidebar menu items
12
+ var menuItems = document.querySelectorAll('#sidebar li');
13
+
14
+ // Get vendor transition property
15
+ var docElemStyle = document.documentElement.style;
16
+ var transitionProp = typeof docElemStyle.transition == 'string' ?
17
+ 'transition' : 'WebkitTransition';
18
+
19
+ function animateMenuItems() {
20
+ for ( var i=0; i < menuItems.length; i++ ) {
21
+ var item = menuItems[i];
22
+ // Stagger transition with transitionDelay
23
+ item.style[ transitionProp + 'Delay' ] = ( i * 75 ) + 'ms';
24
+ item.classList.toggle('is--moved');
25
+ }
26
+ };
27
+
28
+ // Toggle sidebar visibility
29
+ function toggleClassMenu() {
30
+ myMenu.classList.add('is--animatable');
31
+ if(!myMenu.classList.contains('is--visible')) {
32
+ myMenu.classList.add('is--visible');
33
+ myToggle.classList.add('open');
34
+ myWrapper.classList.add('is--pushed');
35
+ } else {
36
+ myMenu.classList.remove('is--visible');
37
+ myToggle.classList.remove('open');
38
+ myWrapper.classList.remove('is--pushed');
39
+ }
40
+ }
41
+
42
+ function OnTransitionEnd() {
43
+ myMenu.classList.remove('is--animatable');
44
+ }
45
+
46
+ var myWrapper = document.querySelector('.wrapper');
47
+ var myMenu = document.querySelector('.sidebar');
48
+ var myToggle = document.querySelector('.toggle');
49
+ myMenu.addEventListener('transitionend', OnTransitionEnd, false);
50
+ myToggle.addEventListener('click', function() {
51
+ toggleClassMenu();
52
+ animateMenuItems();
53
+ }, false);
54
+ myMenu.addEventListener('click', function() {
55
+ toggleClassMenu();
56
+ animateMenuItems();
57
+ }, false);