bedrock_sass 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/_vendor/tinymce/plugins/advlist/index.js +7 -0
  4. data/assets/_vendor/tinymce/plugins/advlist/plugin.js +428 -0
  5. data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -0
  6. data/assets/_vendor/tinymce/plugins/anchor/index.js +7 -0
  7. data/assets/_vendor/tinymce/plugins/anchor/plugin.js +338 -0
  8. data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -0
  9. data/assets/_vendor/tinymce/plugins/autolink/index.js +7 -0
  10. data/assets/_vendor/tinymce/plugins/autolink/plugin.js +404 -0
  11. data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -0
  12. data/assets/_vendor/tinymce/plugins/autoresize/index.js +7 -0
  13. data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +451 -0
  14. data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -0
  15. data/assets/_vendor/tinymce/plugins/autosave/index.js +7 -0
  16. data/assets/_vendor/tinymce/plugins/autosave/plugin.js +608 -0
  17. data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -0
  18. data/assets/_vendor/tinymce/plugins/bbcode/index.js +7 -0
  19. data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +264 -0
  20. data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -0
  21. data/assets/_vendor/tinymce/plugins/charmap/index.js +7 -0
  22. data/assets/_vendor/tinymce/plugins/charmap/plugin.js +850 -0
  23. data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -0
  24. data/assets/_vendor/tinymce/plugins/code/index.js +7 -0
  25. data/assets/_vendor/tinymce/plugins/code/plugin.js +338 -0
  26. data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -0
  27. data/assets/_vendor/tinymce/plugins/codesample/css/prism.css +138 -0
  28. data/assets/_vendor/tinymce/plugins/codesample/index.js +7 -0
  29. data/assets/_vendor/tinymce/plugins/codesample/plugin.js +1582 -0
  30. data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -0
  31. data/assets/_vendor/tinymce/plugins/colorpicker/index.js +7 -0
  32. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +272 -0
  33. data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -0
  34. data/assets/_vendor/tinymce/plugins/contextmenu/index.js +7 -0
  35. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +496 -0
  36. data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -0
  37. data/assets/_vendor/tinymce/plugins/directionality/index.js +7 -0
  38. data/assets/_vendor/tinymce/plugins/directionality/plugin.js +270 -0
  39. data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -0
  40. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
  41. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
  42. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
  43. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
  44. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
  45. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
  46. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
  47. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
  48. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
  49. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
  50. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
  51. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
  52. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
  53. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
  54. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
  55. data/assets/_vendor/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
  56. data/assets/_vendor/tinymce/plugins/emoticons/index.js +7 -0
  57. data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +256 -0
  58. data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -0
  59. data/assets/_vendor/tinymce/plugins/fullpage/index.js +7 -0
  60. data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +962 -0
  61. data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -0
  62. data/assets/_vendor/tinymce/plugins/fullscreen/index.js +7 -0
  63. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +455 -0
  64. data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -0
  65. data/assets/_vendor/tinymce/plugins/help/img/logo.png +0 -0
  66. data/assets/_vendor/tinymce/plugins/help/index.js +7 -0
  67. data/assets/_vendor/tinymce/plugins/help/plugin.js +1527 -0
  68. data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -0
  69. data/assets/_vendor/tinymce/plugins/hr/index.js +7 -0
  70. data/assets/_vendor/tinymce/plugins/hr/plugin.js +195 -0
  71. data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -0
  72. data/assets/_vendor/tinymce/plugins/image/index.js +7 -0
  73. data/assets/_vendor/tinymce/plugins/image/plugin.js +1572 -0
  74. data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -0
  75. data/assets/_vendor/tinymce/plugins/imagetools/index.js +7 -0
  76. data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +4444 -0
  77. data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +2 -0
  78. data/assets/_vendor/tinymce/plugins/importcss/index.js +7 -0
  79. data/assets/_vendor/tinymce/plugins/importcss/plugin.js +577 -0
  80. data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -0
  81. data/assets/_vendor/tinymce/plugins/insertdatetime/index.js +7 -0
  82. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +482 -0
  83. data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
  84. data/assets/_vendor/tinymce/plugins/legacyoutput/index.js +7 -0
  85. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +395 -0
  86. data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -0
  87. data/assets/_vendor/tinymce/plugins/link/index.js +7 -0
  88. data/assets/_vendor/tinymce/plugins/link/plugin.js +1231 -0
  89. data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -0
  90. data/assets/_vendor/tinymce/plugins/lists/index.js +7 -0
  91. data/assets/_vendor/tinymce/plugins/lists/plugin.js +1985 -0
  92. data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -0
  93. data/assets/_vendor/tinymce/plugins/media/index.js +7 -0
  94. data/assets/_vendor/tinymce/plugins/media/plugin.js +2026 -0
  95. data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -0
  96. data/assets/_vendor/tinymce/plugins/nonbreaking/index.js +7 -0
  97. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +313 -0
  98. data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
  99. data/assets/_vendor/tinymce/plugins/noneditable/index.js +7 -0
  100. data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +316 -0
  101. data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -0
  102. data/assets/_vendor/tinymce/plugins/pagebreak/index.js +7 -0
  103. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +354 -0
  104. data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -0
  105. data/assets/_vendor/tinymce/plugins/paste/index.js +7 -0
  106. data/assets/_vendor/tinymce/plugins/paste/plugin.js +2935 -0
  107. data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -0
  108. data/assets/_vendor/tinymce/plugins/preview/index.js +7 -0
  109. data/assets/_vendor/tinymce/plugins/preview/plugin.js +410 -0
  110. data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -0
  111. data/assets/_vendor/tinymce/plugins/print/index.js +7 -0
  112. data/assets/_vendor/tinymce/plugins/print/plugin.js +194 -0
  113. data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -0
  114. data/assets/_vendor/tinymce/plugins/save/index.js +7 -0
  115. data/assets/_vendor/tinymce/plugins/save/plugin.js +370 -0
  116. data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -0
  117. data/assets/_vendor/tinymce/plugins/searchreplace/index.js +7 -0
  118. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +977 -0
  119. data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -0
  120. data/assets/_vendor/tinymce/plugins/spellchecker/index.js +7 -0
  121. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +1419 -0
  122. data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -0
  123. data/assets/_vendor/tinymce/plugins/tabfocus/index.js +7 -0
  124. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +419 -0
  125. data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -0
  126. data/assets/_vendor/tinymce/plugins/table/index.js +7 -0
  127. data/assets/_vendor/tinymce/plugins/table/plugin.js +15527 -0
  128. data/assets/_vendor/tinymce/plugins/table/plugin.min.js +5 -0
  129. data/assets/_vendor/tinymce/plugins/template/index.js +7 -0
  130. data/assets/_vendor/tinymce/plugins/template/plugin.js +807 -0
  131. data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -0
  132. data/assets/_vendor/tinymce/plugins/textcolor/index.js +7 -0
  133. data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +619 -0
  134. data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -0
  135. data/assets/_vendor/tinymce/plugins/textpattern/index.js +7 -0
  136. data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +718 -0
  137. data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -0
  138. data/assets/_vendor/tinymce/plugins/toc/index.js +7 -0
  139. data/assets/_vendor/tinymce/plugins/toc/plugin.js +559 -0
  140. data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -0
  141. data/assets/_vendor/tinymce/plugins/visualblocks/css/visualblocks.css +154 -0
  142. data/assets/_vendor/tinymce/plugins/visualblocks/index.js +7 -0
  143. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +459 -0
  144. data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -0
  145. data/assets/_vendor/tinymce/plugins/visualchars/index.js +7 -0
  146. data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +1325 -0
  147. data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -0
  148. data/assets/_vendor/tinymce/plugins/wordcount/index.js +7 -0
  149. data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +735 -0
  150. data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -0
  151. data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -0
  152. data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -0
  153. data/assets/_vendor/tinymce/skins/lightgray/content.mobile.min.css +1 -0
  154. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
  155. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
  156. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.svg +63 -0
  157. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
  158. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
  159. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
  160. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +131 -0
  161. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
  162. data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
  163. data/assets/_vendor/tinymce/skins/lightgray/img/anchor.gif +0 -0
  164. data/assets/_vendor/tinymce/skins/lightgray/img/loader.gif +0 -0
  165. data/assets/_vendor/tinymce/skins/lightgray/img/object.gif +0 -0
  166. data/assets/_vendor/tinymce/skins/lightgray/img/trans.gif +0 -0
  167. data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -0
  168. data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +2 -0
  169. data/assets/_vendor/tinymce/themes/inlite/index.js +7 -0
  170. data/assets/_vendor/tinymce/themes/inlite/theme.js +18787 -0
  171. data/assets/_vendor/tinymce/themes/inlite/theme.min.js +5 -0
  172. data/assets/_vendor/tinymce/themes/mobile/index.js +7 -0
  173. data/assets/_vendor/tinymce/themes/mobile/theme.js +23384 -0
  174. data/assets/_vendor/tinymce/themes/mobile/theme.min.js +8 -0
  175. data/assets/_vendor/tinymce/themes/modern/index.js +7 -0
  176. data/assets/_vendor/tinymce/themes/modern/theme.js +18311 -0
  177. data/assets/_vendor/tinymce/themes/modern/theme.min.js +5 -0
  178. data/assets/_vendor/tinymce/tinymce.js +44399 -0
  179. data/assets/bedrock/js/bedrock.js +16587 -6193
  180. data/assets/bedrock/scss/_bedrock-components.scss +16 -0
  181. data/assets/bedrock/scss/_bedrock-settings.scss +15 -0
  182. data/assets/bedrock/scss/components/attachments-grid.scss +138 -0
  183. data/assets/bedrock/scss/components/dropzone-upload.scss +158 -0
  184. data/assets/bedrock/scss/components/global.scss +16 -8
  185. data/assets/bedrock/scss/components/helper-classes.scss +59 -0
  186. data/assets/bedrock/scss/components/inline-edit-box.scss +80 -0
  187. data/assets/bedrock/scss/components/login-box.scss +48 -0
  188. data/assets/bedrock/scss/components/no-content.scss +31 -0
  189. data/assets/bedrock/scss/components/off-canvas-menu.scss +1 -1
  190. data/assets/bedrock/scss/components/page-content.scss +51 -0
  191. data/assets/bedrock/scss/components/reveal-panel.scss +89 -0
  192. data/assets/bedrock/scss/components/select-box.scss +332 -0
  193. data/assets/bedrock/scss/components/tiny-mce-editor.scss +14 -7
  194. data/lib/bedrock_sass.rb +6 -0
  195. data/lib/bedrock_sass/engine.rb +8 -0
  196. data/lib/bedrock_sass/version.rb +1 -1
  197. data/lib/tasks/before_assets_precompile.rake +11 -0
  198. metadata +188 -2
@@ -0,0 +1,80 @@
1
+ $inline-edit-box-color: $dark-gray !default;
2
+ $inline-edit-box-background: $light-gray !default;
3
+ $inline-edit-box-border: 1px solid darken($light-gray, 10) !default;
4
+
5
+ // Inline Edit Box Mixins
6
+
7
+ @mixin inline-edit-box {
8
+ position: relative;
9
+ padding: ($global-padding / 3) ($global-padding / 2);
10
+ padding-right: $global-padding * 2.5;
11
+ border: $inline-edit-box-border;
12
+ background: $inline-edit-box-background;
13
+
14
+ &.is-editing {
15
+
16
+ .edit-input, .save-button {
17
+ opacity: 1;
18
+ visibility: visible;
19
+ }
20
+
21
+ .edit-preview, .edit-button {
22
+ opacity: 0;
23
+ visibility: hidden;
24
+ }
25
+ }
26
+
27
+ input, select {
28
+ margin: 0 !important;
29
+ }
30
+
31
+ .edit-input {
32
+ margin: 0;
33
+ opacity: 0;
34
+ visibility: hidden;
35
+ }
36
+
37
+ .edit-button,
38
+ .save-button {
39
+ position: absolute;
40
+ cursor: pointer;
41
+ top: 0;
42
+ right: 0;
43
+ padding: ($global-padding / 2) ($global-padding / 1.5);
44
+ font-size: 1.2rem;
45
+ }
46
+
47
+ .edit-button {
48
+ color: $inline-edit-box-color;
49
+ }
50
+
51
+ .save-button {
52
+ color: $success-color;
53
+ opacity: 0;
54
+ visibility: hidden;
55
+ }
56
+
57
+ .edit-preview {
58
+ position: absolute;
59
+ top: $global-padding / 1.5;
60
+ left: $global-padding / 1.5;
61
+ bottom: $global-padding / 1.5;
62
+ right: $global-padding * 2.5;
63
+ white-space: nowrap;
64
+ overflow: hidden;
65
+ text-overflow: ellipsis;
66
+ color: $inline-edit-box-color;
67
+ margin: 0;
68
+ display: flex;
69
+ align-items: center;
70
+ }
71
+ }
72
+
73
+
74
+ // Inline Edit Box Component
75
+
76
+ @mixin bedrock-inline-edit-box {
77
+ .inline-edit-box {
78
+ @include inline-edit-box;
79
+ }
80
+ }
@@ -0,0 +1,48 @@
1
+ $login-box-width: 26rem !default;
2
+ $login-box-logo-width: 16rem !default;
3
+
4
+ // Login Box Mixins
5
+
6
+ @mixin login-box {
7
+ margin: ($global-margin * 3) auto;
8
+ padding: $global-padding;
9
+ width: 100%;
10
+ max-width: $login-box-width;
11
+
12
+ .logo-image {
13
+ width: 100%;
14
+ display: block;
15
+
16
+ img {
17
+ display: block;
18
+ width: $login-box-logo-width;
19
+ margin: ($global-margin * 2) auto;
20
+ }
21
+ }
22
+
23
+ .footer-links {
24
+ font-size: $small-font-size;
25
+ text-align: center;
26
+
27
+ a {
28
+ color: $body-font-color;
29
+ white-space: nowrap;
30
+ margin: 0 .2rem;
31
+
32
+ &:not(:last-child):after {
33
+ content: "\2022";
34
+ font-size: 1rem;
35
+ margin-left: .4rem;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+
42
+ // Login Box Component
43
+
44
+ @mixin bedrock-login-box {
45
+ .login-box {
46
+ @include login-box;
47
+ }
48
+ }
@@ -0,0 +1,31 @@
1
+ $no-content-color: $medium-gray !default;
2
+
3
+ // No Content Mixins
4
+
5
+ @mixin no-content {
6
+ padding: $global-padding;
7
+ text-align: center;
8
+ color: $no-content-color;
9
+
10
+ > i {
11
+ font-size: 3rem;
12
+ }
13
+
14
+ > img {
15
+ height: 3rem;
16
+ margin-bottom: $global-margin;
17
+ }
18
+
19
+ > span {
20
+ display: block;
21
+ }
22
+ }
23
+
24
+
25
+ // No Content Component
26
+
27
+ @mixin bedrock-no-content {
28
+ .no-content {
29
+ @include no-content;
30
+ }
31
+ }
@@ -5,7 +5,7 @@ $offcanvas-menu-submenu-background: darken($offcanvas-menu-background, 3) !defau
5
5
  // Offcanvas Menu Mixins
6
6
 
7
7
  @mixin off-canvas-menu-wrapper {
8
- @include xy-grid;
8
+ @include xy-grid(horizontal, false);
9
9
  @include off-canvas-wrapper;
10
10
  min-height: 100vh;
11
11
  }
@@ -0,0 +1,51 @@
1
+ $page-content-sidebar-width: 340px !default;
2
+
3
+ // Page Content Mixins
4
+
5
+ @mixin page-content-gutter {
6
+ @each $name, $size in $grid-column-gutter {
7
+ @include breakpoint($name) {
8
+ padding-left: $size / 2;
9
+ padding-right: $size / 2;
10
+ }
11
+ }
12
+ }
13
+
14
+ @mixin page-content {
15
+ @include xy-grid;
16
+ min-height: 100vh;
17
+
18
+ @each $name, $size in $grid-column-gutter {
19
+ @include breakpoint($name) {
20
+ margin-left: -($size / 2);
21
+ margin-right: -($size / 2);
22
+ }
23
+ }
24
+
25
+ @include breakpoint(xlarge) {
26
+ flex-flow: row nowrap;
27
+ }
28
+
29
+ > .content {
30
+ @include xy-cell(auto, false);
31
+ @include page-content-gutter;
32
+ }
33
+
34
+ > .sidebar {
35
+ @include xy-cell(shrink, false);
36
+ @include page-content-gutter;
37
+
38
+ @include breakpoint(xlarge) {
39
+ width: $page-content-sidebar-width;
40
+ }
41
+ }
42
+ }
43
+
44
+
45
+ // Page Content Component
46
+
47
+ @mixin bedrock-page-content {
48
+ .page-content {
49
+ @include page-content;
50
+ }
51
+ }
@@ -0,0 +1,89 @@
1
+ $panel-font-color: $body-font-color !default;
2
+ $panel-font-color-alt: $body-background !default;
3
+
4
+ // Reveal Panel Mixins
5
+
6
+ @mixin reveal-panel-header {
7
+ @include xy-cell-reset();
8
+ @include xy-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: true);
9
+ }
10
+
11
+ @mixin reveal-panel-content {
12
+ @include xy-cell-reset();
13
+ @include xy-cell-static(auto, false, $breakpoint: $-zf-size, $vertical: true);
14
+ @include xy-cell-block(true);
15
+ }
16
+
17
+ @mixin reveal-panel-footer {
18
+ @include xy-cell-reset();
19
+ @include xy-cell-static(shrink, false, $breakpoint: $-zf-size, $vertical: true);
20
+ }
21
+
22
+ @mixin reveal-panel-size($full: false) {
23
+ @if $full {
24
+ height: 100vh;
25
+ max-height: unset;
26
+ }
27
+
28
+ @else {
29
+ height: auto;
30
+ max-height: 96vh;
31
+
32
+ @include breakpoint($-zf-zero-breakpoint only) {
33
+ height: 100vh;
34
+ max-height: unset;
35
+ }
36
+ }
37
+ }
38
+
39
+ @mixin reveal-panel {
40
+ padding: 0 !important;
41
+ border: 0 !important;
42
+
43
+ .close-button {
44
+ top: .8rem;
45
+ }
46
+
47
+ .panel {
48
+ @include xy-grid(vertical, false);
49
+ @include xy-grid-frame(true);
50
+
51
+ @each $name, $color in $foundation-palette {
52
+ &.#{$name} .close-button {
53
+ color: color-pick-contrast($color, ($panel-font-color, $panel-font-color-alt));
54
+ }
55
+ }
56
+ }
57
+
58
+ .panel-header {
59
+ @include reveal-panel-header;
60
+ }
61
+
62
+ .panel-content {
63
+ @include reveal-panel-content;
64
+ }
65
+
66
+ .panel-footer {
67
+ @include reveal-panel-footer;
68
+ }
69
+
70
+ .panel, .panel-content {
71
+ @include reveal-panel-size;
72
+ }
73
+
74
+ &.full {
75
+
76
+ .panel, .panel-content {
77
+ @include reveal-panel-size(true);
78
+ }
79
+ }
80
+ }
81
+
82
+
83
+ // Reveal Panel Component
84
+
85
+ @mixin bedrock-reveal-panel {
86
+ .reveal-panel {
87
+ @include reveal-panel;
88
+ }
89
+ }
@@ -0,0 +1,332 @@
1
+ // Select Box Mixins
2
+
3
+ @mixin select-box-list {
4
+ &.select2-container--list {
5
+ .select2-selection--multiple {
6
+
7
+ .select2-selection__choice {
8
+ font-size: inherit;
9
+ margin: 0 0 ($global-margin / 2);
10
+ padding: $global-margin / 2;
11
+ display: block;
12
+ width: 100%;
13
+ }
14
+
15
+ .select2-selection__rendered {
16
+ padding: 0;
17
+ }
18
+ }
19
+
20
+ .select2-search--inline {
21
+ display: block;
22
+ width: 100%;
23
+
24
+ .select2-search__field {
25
+ margin: 0;
26
+ width: 100% !important;
27
+ }
28
+ }
29
+ }
30
+ }
31
+
32
+ @mixin select-box-single {
33
+ .select2-selection--single {
34
+ @include form-select;
35
+ display: block;
36
+ width: 100%;
37
+ margin: 0;
38
+
39
+ .select2-selection__clear {
40
+ position: relative;
41
+ }
42
+ }
43
+ }
44
+
45
+ @mixin select-box-multiple {
46
+ &.select2-container--default {
47
+
48
+ .select2-selection--multiple {
49
+ @include form-element;
50
+
51
+ .select2-selection__choice {
52
+ float: left;
53
+ margin-right: 5px;
54
+ margin-top: 5px;
55
+ }
56
+
57
+ .select2-selection__rendered {
58
+ margin: -5px;
59
+ }
60
+ }
61
+
62
+ .select2-search--inline {
63
+ float: left;
64
+
65
+ .select2-search__field {
66
+ margin: 5px 0;
67
+ padding: 0;
68
+ border: none;
69
+ height: auto;
70
+ background: transparent;
71
+ outline: 0;
72
+ box-shadow: none;
73
+ }
74
+ }
75
+ }
76
+
77
+ .select2-selection--multiple {
78
+ display: block;
79
+ width: 100%;
80
+ height: auto !important;
81
+ margin: 0 !important;
82
+
83
+ .select2-selection__clear {
84
+ cursor: pointer;
85
+ float: right;
86
+ font-weight: bold;
87
+ margin-top: 5px;
88
+ margin-right: 10px;
89
+ }
90
+
91
+ .select2-selection__choice {
92
+ @include label;
93
+ background: $label-background;
94
+ color: $label-color;
95
+ }
96
+
97
+ .select2-selection__choice__remove {
98
+ cursor: pointer;
99
+ display: inline-block;
100
+ font-weight: bold;
101
+ margin-right: 5px;
102
+ }
103
+ }
104
+
105
+ [dir="rtl"] {
106
+ .select2-selection--multiple {
107
+ .select2-selection__choice {
108
+ margin-left: 5px;
109
+ margin-right: auto;
110
+ }
111
+
112
+ .select2-selection__choice__remove {
113
+ margin-left: 2px;
114
+ margin-right: auto;
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ @mixin select-box-basics {
121
+ .select2-close-mask {
122
+ border: 0;
123
+ margin: 0;
124
+ padding: 0;
125
+ display: block;
126
+ position: fixed;
127
+ left: 0;
128
+ top: 0;
129
+ min-height: 100%;
130
+ min-width: 100%;
131
+ height: auto;
132
+ width: auto;
133
+ opacity: 0;
134
+ z-index: 99;
135
+ background-color: #fff;
136
+ }
137
+
138
+ .select2-selection__rendered {
139
+ display: block;
140
+ padding: 0 5px;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ white-space: nowrap;
144
+ list-style-type: none;
145
+ margin: 0;
146
+ }
147
+
148
+ .select2-selection__placeholder {
149
+ color: $input-placeholder-color;
150
+ display: inline-block;
151
+ }
152
+
153
+ .select2-hidden-accessible {
154
+ display: none !important;
155
+
156
+ + .select2-container {
157
+ width: 100% !important;
158
+ }
159
+ }
160
+
161
+ .select2-selection__arrow {
162
+ display: none !important;
163
+ }
164
+
165
+ .select2-selection__clear {
166
+ cursor: pointer;
167
+ float: right;
168
+ font-weight: bold;
169
+ }
170
+
171
+ .select2-container--disabled {
172
+
173
+ .select2-selection {
174
+ background-color: $input-background-disabled;
175
+ cursor: $input-cursor-disabled;
176
+ pointer-events: none;
177
+ }
178
+
179
+ .select2-selection__clear {
180
+ display: none !important;
181
+ }
182
+ }
183
+
184
+ [dir="rtl"] {
185
+ .select2-selection__clear {
186
+ float: left;
187
+ }
188
+ }
189
+ }
190
+
191
+ @mixin select-box-container {
192
+ .select2-container {
193
+ display: inline-block;
194
+ margin: 0 0 $form-spacing;
195
+ position: relative;
196
+
197
+ @include select-box-single;
198
+ @include select-box-multiple;
199
+ @include select-box-list;
200
+ }
201
+ }
202
+
203
+ @mixin select-box-dropdown {
204
+ .select2-dropdown {
205
+ background-color: $input-background;
206
+ border: $input-border;
207
+ border-radius: $input-radius;
208
+ display: block;
209
+ position: absolute;
210
+ left: -100000px;
211
+ width: 100%;
212
+ z-index: 1051;
213
+ }
214
+
215
+ .select2-results {
216
+ display: block;
217
+
218
+ > .select2-results__options {
219
+ max-height: 200px;
220
+ overflow-y: auto;
221
+ }
222
+ }
223
+
224
+ .select2-results__group {
225
+ cursor: default;
226
+ display: block;
227
+ padding: 4px;
228
+ }
229
+
230
+ .select2-results__options {
231
+ margin: 0;
232
+ padding: 0;
233
+ list-style: none;
234
+ }
235
+
236
+ .select2-results__option--highlighted {
237
+
238
+ &[aria-selected] {
239
+ background-color: $anchor-color;
240
+ color: white;
241
+ }
242
+ }
243
+
244
+ .select2-results__option {
245
+ padding: $input-padding;
246
+ user-select: none;
247
+
248
+ &[role=group] {
249
+ padding: 0;
250
+ }
251
+
252
+ &[aria-disabled=true] {
253
+ color: $dark-gray;
254
+ }
255
+
256
+ &[aria-selected=true] {
257
+ background-color: $input-background-disabled;
258
+ color: inherit;
259
+ }
260
+
261
+ .select2-results__option {
262
+ padding-left: 1rem;
263
+
264
+ .select2-results__group {
265
+ padding-left: 0;
266
+ }
267
+
268
+ .select2-results__option {
269
+ margin-left: -1rem;
270
+ padding-left: 2rem;
271
+
272
+ .select2-results__option {
273
+ margin-left: -2rem;
274
+ padding-left: 3rem;
275
+
276
+ .select2-results__option {
277
+ margin-left: -3rem;
278
+ padding-left: 4rem;
279
+
280
+ .select2-results__option {
281
+ margin-left: -4rem;
282
+ padding-left: 5rem;
283
+
284
+ .select2-results__option {
285
+ margin-left: -5rem;
286
+ padding-left: 6rem;
287
+ }
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }
294
+
295
+ .select2-container--open .select2-dropdown {
296
+ left: 0;
297
+ }
298
+
299
+ .select2-container--open .select2-dropdown--above {
300
+ border-bottom: none;
301
+ border-bottom-left-radius: 0;
302
+ border-bottom-right-radius: 0;
303
+ }
304
+
305
+ .select2-container--open .select2-dropdown--below {
306
+ border-top: none;
307
+ border-top-left-radius: 0;
308
+ border-top-right-radius: 0;
309
+ }
310
+
311
+ .select2-search--dropdown {
312
+ display: block;
313
+ padding: 4px;
314
+
315
+ .select2-search__field {
316
+ margin: 0;
317
+ }
318
+
319
+ &.select2-search--hide {
320
+ display: none;
321
+ }
322
+ }
323
+ }
324
+
325
+
326
+ // Select Box Component
327
+
328
+ @mixin bedrock-select-box {
329
+ @include select-box-container;
330
+ @include select-box-dropdown;
331
+ @include select-box-basics;
332
+ }