futuro 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/html/assign/page.liquid +2 -1
  3. data/_includes/html/assign/site.liquid +30 -21
  4. data/_includes/html/layout/footer.liquid +5 -1
  5. data/_includes/html/page/content.liquid +70 -71
  6. data/_includes/html/page/content/loop/alert.liquid +31 -0
  7. data/_includes/html/page/content/loop/button/build.liquid +7 -1
  8. data/_includes/html/page/content/loop/checkbox.liquid +4 -8
  9. data/_includes/html/page/content/loop/form.liquid +53 -38
  10. data/_includes/html/page/content/loop/form/alert.liquid +8 -13
  11. data/_includes/html/page/content/loop/form/callout.liquid +1 -1
  12. data/_includes/html/page/content/loop/form/date.liquid +7 -7
  13. data/_includes/html/page/content/loop/form/email.liquid +38 -0
  14. data/_includes/html/page/content/loop/form/item.liquid +6 -9
  15. data/_includes/html/page/content/loop/form/message.liquid +1 -1
  16. data/_includes/html/page/content/loop/form/number.liquid +37 -0
  17. data/_includes/html/page/content/loop/form/phone.liquid +38 -0
  18. data/_includes/html/page/content/loop/form/radio.liquid +7 -7
  19. data/_includes/html/page/content/loop/form/select.liquid +10 -10
  20. data/_includes/html/page/content/loop/form/text.liquid +22 -27
  21. data/_includes/html/page/content/loop/form/textarea.liquid +6 -5
  22. data/_includes/html/page/content/loop/header/search.liquid +1 -1
  23. data/_includes/html/page/content/loop/{form/input.liquid → input.liquid} +6 -2
  24. data/_includes/html/page/content/loop/item.liquid +16 -0
  25. data/_includes/html/page/content/loop/label.liquid +37 -0
  26. data/_includes/html/page/content/loop/onemoment.liquid +6 -0
  27. data/_includes/html/page/content/loop/screen.liquid +2 -2
  28. data/_includes/html/page/content/loop/screen/header.liquid +3 -3
  29. data/_includes/html/page/content/loop/{select/create.liquid → select.liquid} +7 -3
  30. data/_includes/html/page/content/row.liquid +1 -1
  31. data/_includes/html/page/footnote.liquid +4 -2
  32. data/_includes/html/page/header.liquid +1 -2
  33. data/_includes/html/page/layout/home.liquid +17 -7
  34. data/_includes/html/page/topbar.liquid +28 -17
  35. data/_includes/html/page/topbar/navigation/link.liquid +22 -0
  36. data/_includes/html/site/scroller.liquid +1 -1
  37. data/_includes/svg/site/icon.liquid +9 -1
  38. data/_sass/_button.scss +4 -4
  39. data/_sass/area/chapter.scss +2 -1
  40. data/_sass/area/page.scss +1 -1
  41. data/_sass/block/chart.scss +2 -1
  42. data/_sass/block/form/alert.scss +1 -10
  43. data/_sass/block/form/checkbox.scss +3 -21
  44. data/_sass/block/form/input.scss +8 -0
  45. data/_sass/block/form/item.scss +17 -17
  46. data/_sass/block/form/parsley.scss +18 -21
  47. data/_sass/block/util.scss +3 -0
  48. data/_sass/futuro.core.scss +26 -6
  49. data/_sass/helpers/extends.scss +0 -17
  50. data/_sass/helpers/extends/forms.scss +16 -0
  51. data/_sass/helpers/extends/layout.scss +15 -0
  52. data/_sass/helpers/mixins/layout.scss +0 -1
  53. data/_sass/helpers/mixins/theme.scss +116 -127
  54. data/_sass/helpers/themes.scss +14 -13
  55. data/_sass/helpers/variables.scss +25 -211
  56. data/_sass/helpers/variables/colors.scss +290 -0
  57. data/_sass/item/scroller.scss +0 -1
  58. data/_sass/link/book.scss +8 -6
  59. data/_sass/link/navigation.scss +11 -7
  60. data/_sass/link/scroller.scss +4 -0
  61. data/_sass/title/book.scss +9 -0
  62. data/_sass/title/page.scss +2 -0
  63. data/_sass/title/type.scss +1 -0
  64. data/_sass/wrap/select.scss +1 -1
  65. data/_sass/wrap/switch.scss +12 -0
  66. data/_sass/wrap/text.scss +1 -1
  67. data/assets/js/footer/custom/2_Check.width.js +8 -2
  68. data/assets/js/footer/custom/5_Animate.scroller.js +13 -8
  69. data/assets/js/footer/custom/5_button.func.reset.js +15 -0
  70. data/assets/js/footer/custom/5_button.func.submit.js +39 -0
  71. data/assets/js/footer/custom/5_button.func.switch.js +26 -0
  72. data/assets/js/footer/custom/5_button.func.update.js +39 -0
  73. data/assets/js/footer/custom/5_check.form.js +49 -0
  74. data/assets/js/futuro.footer.custom.js +1 -1
  75. data/assets/js/futuro.header.custom.js +1 -1
  76. data/assets/js/header/custom/1_Settings.js +11 -3
  77. data/assets/js/header/custom/2_Site.js +1 -3
  78. metadata +24 -13
  79. data/_includes/html/page/content/loop/alert/create.liquid +0 -20
  80. data/_includes/html/page/content/loop/alert/example.liquid +0 -4
  81. data/_includes/html/page/content/loop/form/label.liquid +0 -17
  82. data/_includes/html/page/content/loop/yousaved.liquid +0 -11
  83. data/_includes/svg/site/book/orwell.svg +0 -1
  84. data/_includes/svg/site/book/woolf.svg +0 -1
  85. data/assets/js/footer/custom/5_Switch.button.js +0 -97
@@ -0,0 +1,6 @@
1
+
2
+ <div class="ticker onemoment">
3
+
4
+ <div class="ticker message">{{ include.ticker }}</div>
5
+
6
+ </div>
@@ -29,11 +29,11 @@
29
29
 
30
30
  </span>
31
31
 
32
- {%- elsif RowType == "alert" -%}
32
+ <!-- {%- elsif RowType == "alert" -%}
33
33
 
34
34
  {%- include {{ LoopAlert | append : 'create.liquid' }}
35
35
  context = "screen"
36
- title = item.row.title -%}
36
+ title = item.row.title -%} -->
37
37
 
38
38
  {%- elsif RowType == "event" or
39
39
  RowType == "retail" -%}
@@ -33,9 +33,9 @@
33
33
 
34
34
  {% elsif RowType == "alert" %}
35
35
 
36
- {%- include {{ LoopAlert | append : 'create.liquid' }}
37
- context = "screen"
38
- title = item.row.title -%}
36
+ {%- include {{ ContentLoop | append : 'alert.liquid' }}
37
+ title = item.row.title
38
+ type = "whatson" -%}
39
39
 
40
40
  {% endif %}
41
41
 
@@ -6,19 +6,23 @@
6
6
  <select id = "{{ name }}"
7
7
  name = "{{ name }}">
8
8
 
9
+ {% assign i = 0 %}
10
+
9
11
  {% for item in IncludeOptions %}
10
12
 
11
- <option value="{{ item }}">{{ item }}</option>
13
+ <option value="{{ i }}">{{ item }}</option>
14
+
15
+ {% assign i = i | plus : 1 %}
12
16
 
13
17
  {% endfor %}
14
18
 
15
19
  </select>
16
20
 
17
- <span class="block select-dropdown">
21
+ <!-- <span class="block select-dropdown">
18
22
 
19
23
  {% include {{ SvgIcon }} type='more' %}
20
24
 
21
- </span>
25
+ </span> -->
22
26
 
23
27
  </span>
24
28
 
@@ -29,7 +29,7 @@
29
29
 
30
30
  {% elsif RowType == "alert" %}
31
31
 
32
- {% include {{ LoopAlert | append : 'create.liquid' }}
32
+ {% include {{ ContentLoop | append : 'alert.liquid' }}
33
33
  context = "screen"
34
34
  title = page.row.title %}
35
35
 
@@ -3,7 +3,9 @@
3
3
 
4
4
  <p class="block page-footnote">
5
5
 
6
- {%- for item in page.footnote -%}
6
+ <strong>Source:</strong> {{ page.footnote }}
7
+
8
+ <!-- {%- for item in page.footnote -%}
7
9
 
8
10
  {%- if item.pre -%}
9
11
 
@@ -17,7 +19,7 @@
17
19
 
18
20
  {%- endif -%}
19
21
 
20
- {%- endfor -%}
22
+ {%- endfor -%} -->
21
23
 
22
24
  </p>
23
25
 
@@ -1,6 +1,5 @@
1
1
 
2
- <div class="wrap page-wrap {{ PageType }}
3
- {% if site.setup.style %}{{ SiteStyle }}{% endif %}
2
+ <div class="wrap page-wrap {{ PageType }} {{ SiteStyle }}
4
3
  {% if page.collection %}{{ PageBook | prepend : 'book-' }}{% endif %}
5
4
  {% if page.chapter %}{{ PageChapter | prepend : 'chapter-' }}{% endif %}
6
5
  {% if page.topic %}{{ PageTopic | prepend : 'topic-' }} in-topic{% endif %}
@@ -3,18 +3,28 @@
3
3
 
4
4
  {% for book in loop %}
5
5
 
6
- {% assign label = book.label %}
7
- {% assign url = label | prepend: '/' | append: '/' %}
8
- {% assign svg = label | append: '.svg' %}
6
+ {% assign url = book.label | prepend: '/' | append: '/' %}
7
+ {% assign svg = book.label | append: '.svg' %}
9
8
 
10
- {% unless label == 'posts' %}
9
+ {% if book.live %}
10
+ {% assign href = url %}
11
+ {% assign class = book.label %}
12
+ {% else %}
13
+ {% assign href = "#" %}
14
+ {% assign class = "draft" %}
15
+ {% endif %}
16
+
17
+ {% unless book.label == 'posts' %}
11
18
 
12
19
  <div class="wrap book">
13
20
 
14
- <a class="link book {% if book.live %}{{ label }}{% else %}draft{% endif %}"
15
- href="{% if book.live %}{{ url }}{% else %}#{% endif %}">
21
+ <a class="link book {{ class }}" href="{{ href }}">
16
22
 
17
- {% include {{ SvgBook | append : svg }} %}
23
+ <span class="title book {{ class }}">
24
+
25
+ {{ book.label }}
26
+
27
+ </span>
18
28
 
19
29
  </a>
20
30
 
@@ -1,52 +1,63 @@
1
1
 
2
- {% assign label = page.label | downcase | prepend: '/' %}
3
-
4
2
  <div class="area topbar">
5
3
 
6
4
  <div class="block navigation left">
7
5
 
8
6
  <button type="button" class="navigation about">
9
- {% include {{ SvgBtn | append : 'about.svg' }} %}
7
+
8
+ {% include {{ SvgIcon }} type="about" %}
9
+
10
10
  </button>
11
11
 
12
12
  <button type="button" class="navigation browse">
13
- {% include {{ SvgBtn | append : 'browse.svg' }} %}
13
+
14
+ {% include {{ SvgIcon }} type="browse" %}
15
+
14
16
  </button>
15
17
 
16
18
  </div>
17
19
 
18
20
  <div class="block navigation main">
19
21
 
20
- {% assign loop = site.collections | sort: 'weight' %}
22
+ {% if page.error %}
21
23
 
22
- {% for page in loop %}
24
+ {% include {{ SiteTopbar | append : 'navigation/link.liquid' }}
25
+ title = "Home"
26
+ href = "/" %}
27
+
28
+ {% else %}
23
29
 
24
- {% if page.live %}
30
+ {% assign loop = site.collections | sort: 'weight' %}
25
31
 
26
- <a class="link navigation {{ page.label }}" href="{%- if site.setup.install == 'library' -%}{{ page.label | prepend: '/' }}{%- else -%}/{%- endif -%}">
27
- <button type="button" name="button">
28
- <strong>{{ page.label }}</strong>
29
- </button>
30
- </a>
32
+ {% for item in loop %}
31
33
 
32
- {% endif %}
34
+ {% if item.live %}
33
35
 
34
- {% endfor %}
36
+ {% include {{ SiteTopbar | append : 'navigation/link.liquid' }}
37
+ title = item.label %}
38
+
39
+ {% endif %}
40
+
41
+ {% endfor %}
42
+
43
+ {% endif %}
35
44
 
36
45
  </div>
37
46
 
38
47
  <div class="block navigation right">
39
48
 
40
- <button type="button" class="navigation cart" style="display:none;">
49
+ <!-- <button type="button" class="navigation cart">
41
50
  {% include {{ SvgBtn | append : 'cart.svg' }} %}
42
51
  </button>
43
52
 
44
- <button type="button" class="navigation count" style="display:none;">
53
+ <button type="button" class="navigation count">
45
54
  <strong>0</strong>
46
- </button>
55
+ </button> -->
47
56
 
48
57
  <button type="button" class="navigation search">
58
+
49
59
  {% include {{ SvgIcon }} type="search" %}
60
+
50
61
  </button>
51
62
 
52
63
  </div>
@@ -0,0 +1,22 @@
1
+
2
+ {% assign class = include.title | replace : ' ','-' | downcase %}
3
+
4
+ {% if include.href %}
5
+
6
+ {% assign href = include.href %}
7
+
8
+ {% else %}
9
+
10
+ {% assign href = class | prepend : '/' %}
11
+
12
+ {% endif %}
13
+
14
+ <a class="link navigation {{ class }}" href={{ href }}>
15
+
16
+ <button type="button" name="button">
17
+
18
+ <strong>{{ include.title }}</strong>
19
+
20
+ </button>
21
+
22
+ </a>
@@ -29,7 +29,7 @@
29
29
  {% assign ItemTitle = item.title | replace : ' ','-' | downcase %}
30
30
  {% assign ItemID = ItemChapter | append : ItemTitle %}
31
31
 
32
- <li class="item scroller {{ ItemTitle }}">
32
+ <li class="item scroller {{ ItemID }}">
33
33
 
34
34
  <a href="{{ ItemID | prepend : '#' }}" class="link scroller">
35
35
 
@@ -15,6 +15,14 @@
15
15
 
16
16
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
17
17
 
18
+ {%- elsif include.type == "about" -%}
19
+
20
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M17.5,10.5c-0.5,0.5-1.1,0.7-1.8,0.7c-0.7,0-1.3-0.2-1.7-0.7 c-0.5-0.5-0.7-1.1-0.7-1.8C13.3,8,13.5,7.5,14,7c0.5-0.5,1.1-0.7,1.7-0.7c0.7,0,1.3,0.2,1.8,0.7C18,7.5,18.2,8,18.2,8.7 C18.2,9.4,18,10,17.5,10.5z M13.5,25.3H18v-11h-4.5V25.3z M16,0C7.2,0,0,7.2,0,16c0,8.8,7.2,16,16,16c8.8,0,16-7.2,16-16 C32,7.2,24.8,0,16,0z" fill-rule="evenodd" clip-rule="evenodd"/></svg>
21
+
22
+ {%- elsif include.type == "browse" -%}
23
+
24
+ <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M27.2,4.6C21-1.6,10.8-1.5,4.6,4.8C-1.6,11-1.5,21.2,4.8,27.4 s16.4,6.2,22.6-0.1S33.5,10.8,27.2,4.6z" fill-rule="evenodd" clip-rule="evenodd"/><path d="M25.3,22.3L17,24.4L17.1,11l8.2-2V22.3z M7,8.8l8,2l-0.1,13.3 L7,22.2V8.8z" fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF"/></svg>
25
+
18
26
  {%- elsif include.type == "search" -%}
19
27
 
20
28
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.5,7.4C6.6,8.3,6,9.7,6,11.1s0.6,2.7,1.5,3.7c0.9,0.9,2.3,1.5,3.7,1.5 s2.7-0.6,3.7-1.5c0.9-0.9,1.5-2.3,1.5-3.7s-0.6-2.7-1.5-3.7c-1-1.1-2.3-1.5-3.7-1.5S8.5,6.4,7.5,7.4z M19.5,21.4l-4-4 c-1.2,0.9-2.7,1.3-4.2,1.3c-2.1,0-4-0.8-5.4-2.2c-1.4-1.4-2.2-3.3-2.2-5.3s0.8-4,2.2-5.4s3.4-2.3,5.4-2.3s4,0.8,5.4,2.2 S19,9,19,11.1c0,1.5-0.4,3-1.3,4.3l4,4L19.5,21.4z" fill-rule="evenodd" clip-rule="evenodd"/></svg>
@@ -67,7 +75,7 @@
67
75
 
68
76
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M6,0c3.3,0,6,2.7,6,6s-2.7,6-6,6S0,9.3,0,6S2.7,0,6,0z"/></svg>
69
77
 
70
- {%- elsif include.type == "seatplan" -%}
78
+ {%- elsif include.type == "seatplan" -%}
71
79
 
72
80
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
73
81
  <path class="style-level-d" d="M109,102.5c3.6,0,6.5,2.9,6.5,6.5s-2.9,6.5-6.5,6.5s-6.5-2.9-6.5-6.5S105.4,102.5,109,102.5z"/>
@@ -21,16 +21,16 @@
21
21
  }
22
22
 
23
23
  .button-wrap.type-solid {
24
- @include bg($tint:100%);
24
+ background-color: setcolor(slate);
25
25
  color: white;
26
- fill: white;
26
+ fill: white;
27
27
  }
28
28
 
29
29
  .button-wrap.type-outline {
30
30
  border: 1px solid setcolor(slate);
31
+ background-color: white;
31
32
  color: setcolor(slate);
32
33
  fill: setcolor(slate);
33
- background-color: white;
34
34
  }
35
35
 
36
36
  .button-wrap.context-legend {
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .button-bg.func-submit {
46
- @include borderRad($radius);
46
+ border-radius: 4px;
47
47
  }
48
48
 
49
49
  .button-wrap.func-update {
@@ -3,7 +3,8 @@
3
3
  @extend %ContentFlow;
4
4
 
5
5
  ul {
6
- grid-auto-rows: min-content;
6
+ // grid-auto-rows: min-content;
7
+ padding: 20px 0 0;
7
8
  list-style: none;
8
9
  grid-gap: 8px;
9
10
  display: grid;
@@ -9,7 +9,7 @@ $AreaSub : $AreaHeight - $SubHeight;
9
9
 
10
10
  %PageContent {
11
11
 
12
- > h1, > h2, > h3, > h4, > h5, > h6, > p, > ul, > ol, > .roller, .block.animate {
12
+ > h1, > h2, > h3, > h4, > h5, > h6, > p, > ul, > ol, > .roller, .block.animate, .wrap.switch {
13
13
  @extend %ContentPrep;
14
14
  }
15
15
 
@@ -39,6 +39,7 @@
39
39
  .block.chart-title {
40
40
  @include RotateTitle;
41
41
  left: calc(50% + 14px);
42
- bottom: 10px;
42
+ position: absolute;
43
43
  color: white;
44
+ bottom: 10px;
44
45
  }
@@ -1,15 +1,6 @@
1
1
 
2
2
  .block.form-alert {
3
- padding: 14px 12px 10px 12px;
4
- background-color: setcolor(gun,xlight);
5
- border: 1px solid setcolor(gun,light);
6
- color: setcolor(gun,dark);
7
- border-radius: 4px;
8
- display: block;
9
- }
10
-
11
- .block.form-alert > .block.item-object {
12
- padding: 0;
3
+ @extend %AlertBlock;
13
4
  }
14
5
 
15
6
  .block.form-row .block.form-alert {
@@ -1,22 +1,6 @@
1
1
 
2
- %checkbox {
3
- @include zeros(absolute);
4
- left: ($radius * 4);
5
- cursor: pointer;
6
- height: 14px;
7
- margin: auto;
8
- width: 14px;
9
- right: auto;
10
-
11
- &:checked + label {
12
- @include color(setcolor(slate),100%);
13
- @include border(setcolor(slate));
14
- @include bg(setcolor(slate));
15
- }
16
- }
17
-
18
2
  input[type="checkbox"] {
19
- @extend %checkbox;
3
+ @extend %Checkbox;
20
4
  }
21
5
 
22
6
  .checkbox-wrap {
@@ -24,10 +8,8 @@ input[type="checkbox"] {
24
8
  display: grid;
25
9
  }
26
10
 
27
- .nolabel {
28
- @media#{map-get($query,min768)} {
29
- grid-column: 2 / 3;
30
- }
11
+ .no-label {
12
+ @extend %NoLabel;
31
13
  }
32
14
 
33
15
 
@@ -7,6 +7,14 @@ input[type="email"] {
7
7
  @extend %TextInput;
8
8
  }
9
9
 
10
+ input[type="tel"] {
11
+ @extend %TextInput;
12
+ }
13
+
14
+ input[type="number"] {
15
+ @extend %TextInput;
16
+ }
17
+
10
18
  input[type="checkbox"] {
11
19
  cursor: pointer;
12
20
  }
@@ -1,22 +1,22 @@
1
1
 
2
- .block.item-row + .block.item-row {
3
- margin-top: 0;
2
+ // .block.item-row + .block.item-row {
3
+ // margin-top: 0;
4
4
 
5
- .block.item-object {
6
- border-top: 1px solid rgba(setcolor(slate),20%);
7
- }
8
- }
5
+ // .block.item-object {
6
+ // border-top: 1px solid rgba(setcolor(slate),20%);
7
+ // }
8
+ // }
9
9
 
10
- .block.item-object {
11
- padding: ($radius * 2) ($radius * 3);
12
- grid-template-columns: auto 100px;
13
- display: grid;
10
+ // .block.item-object {
11
+ // padding: ($radius * 2) ($radius * 3);
12
+ // grid-template-columns: auto 100px;
13
+ // display: grid;
14
14
 
15
- @media#{map-get($query,min768)} {
16
- grid-column: 2 / 3;
17
- }
18
- }
15
+ // @media#{map-get($query,min768)} {
16
+ // grid-column: 2 / 3;
17
+ // }
18
+ // }
19
19
 
20
- .block.item-object-price {
21
- text-align: right;
22
- }
20
+ // .block.item-object-price {
21
+ // text-align: right;
22
+ // }