pageflow-progress-navigation-bar 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.scss-lint.yml +147 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +0 -6
- data/README.md +2 -2
- data/app/assets/javascript/pageflow/progress_navigation_bar.js +7 -1
- data/app/assets/javascript/pageflow/progress_navigation_bar/widget.js +97 -43
- data/app/assets/stylesheets/pageflow/{progress_navigation_bar.css.scss → progress_navigation_bar.scss} +33 -195
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/animations2.scss +82 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/cross_dependant_styles.scss +37 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/horizontal.scss +234 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/mixins.scss +54 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default.scss +273 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/buttons.scss +22 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/credits.scss +9 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/icon_font.scss +206 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/icons/sprite.scss +152 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/menu_boxes.scss +42 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/share_box.scss +9 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/typography.scss +90 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default/widget_margin.scss +23 -0
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/vertical.scss +97 -0
- data/app/views/pageflow/progress_navigation_bar/_widget.html.erb +7 -3
- data/app/views/pageflow/progress_navigation_bar/widget/_bar_top.html.erb +6 -22
- data/app/views/pageflow/progress_navigation_bar/widget/_overview_button.html.erb +8 -0
- data/app/views/pageflow/progress_navigation_bar/widget/_page.html.erb +1 -2
- data/config/locales/de.yml +4 -1
- data/config/locales/en.yml +4 -1
- data/lib/pageflow-progress-navigation-bar.rb +9 -1
- data/lib/pageflow/progress_navigation_bar/horizontal_widget_type.rb +17 -0
- data/lib/pageflow/progress_navigation_bar/version.rb +1 -1
- data/lib/pageflow/progress_navigation_bar/vertical_widget_type.rb +17 -0
- data/lib/pageflow/progress_navigation_bar/widget_type.rb +5 -4
- data/pageflow-progress-navigation-bar.gemspec +2 -2
- metadata +26 -10
- data/app/assets/stylesheets/pageflow/cross_dependant_styles.css.scss +0 -35
- data/app/assets/stylesheets/pageflow/progress_navigation_bar/themes/default.css.scss +0 -345
@@ -1,345 +0,0 @@
|
|
1
|
-
$nav-color: $main-color;
|
2
|
-
$nav-font: $standard-font;
|
3
|
-
|
4
|
-
$nav-active-chapter: desaturate($main-color, 50%);
|
5
|
-
$nav-active-page: $main-color;
|
6
|
-
|
7
|
-
$nav-active-chapter-beginning: desaturate($main-color, 40%);
|
8
|
-
|
9
|
-
$nav-hint-color: #A9A9A9 !default;
|
10
|
-
$nav-display-header-button: false !default;
|
11
|
-
$nav-display-overview-button: true !default;
|
12
|
-
|
13
|
-
$nav-chapter-beginning: #afafaf;
|
14
|
-
$nav-dot-even: #9B9B9B;
|
15
|
-
$nav-dot-odd: #afafaf;
|
16
|
-
|
17
|
-
$nav-bg-color: $basic-background-color;
|
18
|
-
$bg-color: $nav-bg-color;
|
19
|
-
$nav-bg-color-transparent: $basic-background-color-transparent;
|
20
|
-
|
21
|
-
@mixin pageflow-progress-navigation-bar-small-height {
|
22
|
-
@media screen and (max-height: 870px) {
|
23
|
-
@content;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.progress_navigation_bar {
|
28
|
-
@if $nav-display-header-button {
|
29
|
-
.navigation_button_area .navigation_bar_buttons li {
|
30
|
-
height: 11.11%;
|
31
|
-
|
32
|
-
&.mute {
|
33
|
-
height: 22.22%;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
&.with_home_button {
|
38
|
-
.navigation_button_area .navigation_bar_buttons li {
|
39
|
-
height: 10%;
|
40
|
-
|
41
|
-
&.mute {
|
42
|
-
height: 20%;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
@else {
|
48
|
-
.navigation_button_area .navigation_bar_buttons li {
|
49
|
-
height: 12.25%;
|
50
|
-
|
51
|
-
&.menu_li {
|
52
|
-
display: none;
|
53
|
-
}
|
54
|
-
|
55
|
-
&.mute {
|
56
|
-
height: 25%;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
&.with_home_button {
|
61
|
-
.navigation_button_area .navigation_bar_buttons li {
|
62
|
-
height: 11.11%;
|
63
|
-
|
64
|
-
&.mute {
|
65
|
-
height: 22.22%;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
@if not $nav-display-overview-button {
|
72
|
-
.navigation_overview_item {
|
73
|
-
display: none;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
.navigation_button_area .navigation_bar_buttons {
|
78
|
-
&:after {
|
79
|
-
background-color: $nav-bg-color;
|
80
|
-
background-color: $nav-bg-color-transparent;
|
81
|
-
}
|
82
|
-
|
83
|
-
.navigation_credits_box a{
|
84
|
-
color: $main-color;
|
85
|
-
}
|
86
|
-
|
87
|
-
.navigation_bullet, .navigation_menu > a {
|
88
|
-
position: absolute;
|
89
|
-
text-decoration: none;
|
90
|
-
|
91
|
-
.button {
|
92
|
-
text-decoration: none;
|
93
|
-
font-size: 16px;
|
94
|
-
width: 28px;
|
95
|
-
height: 28px;
|
96
|
-
display: block;
|
97
|
-
background: -webkit-linear-gradient(-75deg, rgba(255, 255, 255, 0.71), rgba(0, 0, 0, 0.32));
|
98
|
-
background-color: #03818c !important;
|
99
|
-
box-shadow: 1px 2px 1px 0px rgba(0,0,0,0.2);
|
100
|
-
border-radius: 18px;
|
101
|
-
color: rgba(0, 0, 0, 0.75);
|
102
|
-
cursor: pointer;
|
103
|
-
margin: -25px auto 0 30px;
|
104
|
-
position: relative;
|
105
|
-
background-color: rgb(219, 219, 219) !important;
|
106
|
-
@include shine-gradient;
|
107
|
-
|
108
|
-
@include pageflow-progress-navigation-bar-small-height {
|
109
|
-
margin: -14px auto 0 30px;
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
&:hover .button, &.active .button {
|
114
|
-
background-color: $nav-color !important;
|
115
|
-
-webkit-mask-image: none;
|
116
|
-
color: rgba(255,255,255,0.9);
|
117
|
-
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
|
118
|
-
|
119
|
-
.button, .navigation_mute, .navigation_share {
|
120
|
-
color: rgba(255,255,255,0.9);
|
121
|
-
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
.navi_hint {
|
126
|
-
color: $nav-hint-color;
|
127
|
-
}
|
128
|
-
|
129
|
-
&:hover, &.active, &:active {
|
130
|
-
.navi_hint {
|
131
|
-
color: $nav-color;
|
132
|
-
}
|
133
|
-
}
|
134
|
-
|
135
|
-
&:active .button{
|
136
|
-
box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2);
|
137
|
-
-webkit-transform: translate(1px,1px);
|
138
|
-
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%,rgba(0,0,0,0.2) 40%,rgba(0,0,0,0.2) 100%);
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
.button, .navigation_mute, .navigation_share {
|
143
|
-
font-family: "FontAwesome";
|
144
|
-
font-size: 1em;
|
145
|
-
color: rgba(0,0,0,0.75);
|
146
|
-
text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.6);
|
147
|
-
|
148
|
-
display: inline-block;
|
149
|
-
width: 100%;
|
150
|
-
text-align: center;
|
151
|
-
line-height: 28px;
|
152
|
-
border-bottom: 0px !important;
|
153
|
-
|
154
|
-
}
|
155
|
-
|
156
|
-
.navigation_bullet.navigation_main {
|
157
|
-
.button {
|
158
|
-
@include fa-reorder-icon;
|
159
|
-
}
|
160
|
-
}
|
161
|
-
|
162
|
-
.navigation_bullet.navigation_top {
|
163
|
-
padding-top: 0;
|
164
|
-
.button {
|
165
|
-
border-bottom: 0;
|
166
|
-
font-weight: bold;
|
167
|
-
|
168
|
-
@include fa-arrow-circle-up-icon;
|
169
|
-
}
|
170
|
-
}
|
171
|
-
.navigation_bullet.navigation_home {
|
172
|
-
padding-top: 0;
|
173
|
-
.button {
|
174
|
-
border-bottom: 0;
|
175
|
-
font-weight: bold;
|
176
|
-
|
177
|
-
@include fa-home-icon;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
.navigation_bullet.navigation_index {
|
181
|
-
.button {
|
182
|
-
@include fa-th-icon;
|
183
|
-
}
|
184
|
-
}
|
185
|
-
|
186
|
-
&.js .navigation_bar_bottom li.fullscreen {
|
187
|
-
height: auto;
|
188
|
-
}
|
189
|
-
|
190
|
-
&.js a.scroll_indicator {
|
191
|
-
background-image: image-url('pageflow/themes/default/scroll_indicator_sprite.png');
|
192
|
-
}
|
193
|
-
|
194
|
-
.navigation_bullet.navigation_fullscreen {
|
195
|
-
|
196
|
-
.button {
|
197
|
-
font-weight: bold;
|
198
|
-
@include fa-expand-icon;
|
199
|
-
}
|
200
|
-
}
|
201
|
-
.navigation_bullet.navigation_hide_text {
|
202
|
-
.button {
|
203
|
-
font-weight: bold;
|
204
|
-
|
205
|
-
@include fa-photo-icon;
|
206
|
-
}
|
207
|
-
}
|
208
|
-
.navigation_menu {
|
209
|
-
.navigation_mute {
|
210
|
-
font-weight: bold;
|
211
|
-
|
212
|
-
@include fa-volume-up-icon;
|
213
|
-
|
214
|
-
&.muted {
|
215
|
-
@include fa-volume-off-icon;
|
216
|
-
}
|
217
|
-
&.muted:before {
|
218
|
-
margin-right: 2px;
|
219
|
-
}
|
220
|
-
}
|
221
|
-
}
|
222
|
-
.navigation_menu {
|
223
|
-
.navigation_share {
|
224
|
-
font-weight: bold;
|
225
|
-
|
226
|
-
@include fa-share-icon;
|
227
|
-
|
228
|
-
&:before {
|
229
|
-
margin-left: 1px;
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|
233
|
-
.navigation_menu {
|
234
|
-
.navigation_credits {
|
235
|
-
font-weight: bold;
|
236
|
-
@include fa-info-icon;
|
237
|
-
}
|
238
|
-
}
|
239
|
-
|
240
|
-
.navigation_share_box {
|
241
|
-
a {
|
242
|
-
text-align: center;
|
243
|
-
|
244
|
-
p {
|
245
|
-
font-family: SourceSansPro;
|
246
|
-
font-size: 12px;
|
247
|
-
}
|
248
|
-
}
|
249
|
-
|
250
|
-
.share_google, .share_facebook, .share_twitter {
|
251
|
-
font-size: 1.5em;
|
252
|
-
&:before {
|
253
|
-
font-family: "FontAwesome";
|
254
|
-
color: white;
|
255
|
-
text-shadow: none;
|
256
|
-
}
|
257
|
-
}
|
258
|
-
|
259
|
-
a:hover {
|
260
|
-
p {
|
261
|
-
color: $nav-color;
|
262
|
-
}
|
263
|
-
|
264
|
-
.share_google, .share_facebook, .share_twitter {
|
265
|
-
&:before {
|
266
|
-
color: $nav-color;
|
267
|
-
}
|
268
|
-
}
|
269
|
-
}
|
270
|
-
|
271
|
-
.share_google {
|
272
|
-
@include fa-google-plus-icon;
|
273
|
-
}
|
274
|
-
.share_facebook {
|
275
|
-
@include fa-facebook-icon;
|
276
|
-
}
|
277
|
-
.share_twitter {
|
278
|
-
@include fa-twitter-icon;
|
279
|
-
}
|
280
|
-
}
|
281
|
-
}
|
282
|
-
|
283
|
-
&.js .scroller:after {
|
284
|
-
background-color: $nav-bg-color;
|
285
|
-
background-color: $nav-bg-color-transparent;
|
286
|
-
}
|
287
|
-
|
288
|
-
.scroller ul, &.js .scroller ul {
|
289
|
-
a {
|
290
|
-
position: absolute;
|
291
|
-
top: 0;
|
292
|
-
left: 0;
|
293
|
-
height: 100%;
|
294
|
-
width: 100%;
|
295
|
-
background-color: $nav-dot-even;
|
296
|
-
border-bottom: 1px solid $nav-bg-color;
|
297
|
-
border-bottom: 1px solid $nav-bg-color-transparent;
|
298
|
-
@include box-sizing(border-box);
|
299
|
-
|
300
|
-
&.in_active_chapter {
|
301
|
-
background-color: $nav-active-chapter;
|
302
|
-
}
|
303
|
-
|
304
|
-
&.active {
|
305
|
-
cursor: default;
|
306
|
-
background-color: $nav-active-page;
|
307
|
-
|
308
|
-
|
309
|
-
img {
|
310
|
-
border-left: 5px solid $nav-active-page;
|
311
|
-
}
|
312
|
-
}
|
313
|
-
}
|
314
|
-
|
315
|
-
li.chapter_beginning a {
|
316
|
-
background-color: $nav-chapter-beginning;
|
317
|
-
|
318
|
-
&.in_active_chapter {
|
319
|
-
background-color: $nav-active-chapter-beginning;
|
320
|
-
}
|
321
|
-
|
322
|
-
&.active {
|
323
|
-
background-color: $main-color;
|
324
|
-
}
|
325
|
-
}
|
326
|
-
|
327
|
-
img {
|
328
|
-
display: block;
|
329
|
-
}
|
330
|
-
|
331
|
-
&.no_chapters {
|
332
|
-
li.chapter_beginning a, li a.in_active_chapter, li.chapter_beginning a.in_active_chapter {
|
333
|
-
background-color: $nav-dot-even;
|
334
|
-
|
335
|
-
&.active {
|
336
|
-
background-color: $nav-active-page;
|
337
|
-
}
|
338
|
-
}
|
339
|
-
}
|
340
|
-
}
|
341
|
-
|
342
|
-
&.js .volume-control .volume-level {
|
343
|
-
background-color: $nav-color;
|
344
|
-
}
|
345
|
-
}
|