bedrock_sass 0.1.7 → 0.1.8

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.
@@ -91,40 +91,19 @@
91
91
  margin-left: -.625rem;
92
92
  margin-right: -.625rem;
93
93
 
94
- @include breakpoint(320px) {
95
- @include xy-grid-layout(2, '.attachment');
96
- }
97
-
98
- @include breakpoint(480px) {
99
- @include xy-grid-layout(3, '.attachment');
100
- }
101
-
102
- @include breakpoint(680px) {
103
- @include xy-grid-layout(4, '.attachment');
104
- }
105
-
106
- @include breakpoint(800px) {
107
- @include xy-grid-layout(5, '.attachment');
108
- }
94
+ @for $i from 1 through 9 {
95
+ &[data-grid-columns="#{$i}"] {
96
+ @include xy-grid-layout($i, '.attachment');
109
97
 
110
- @include breakpoint(1280px) {
111
- @include xy-grid-layout(6, '.attachment');
112
- }
113
-
114
- @include breakpoint(1366px) {
115
- @include xy-grid-layout(7, '.attachment');
116
- }
117
-
118
- @include breakpoint(1440px) {
119
- @include xy-grid-layout(8, '.attachment');
120
- }
121
-
122
- @include breakpoint(1600px) {
123
- @include xy-grid-layout(9, '.attachment');
98
+ .attachment {
99
+ max-width: 100% !important;
100
+ }
101
+ }
124
102
  }
125
103
 
126
104
  .attachment {
127
105
  @include attachments-grid-item;
106
+ max-width: 170px;
128
107
  }
129
108
  }
130
109
 
@@ -62,13 +62,13 @@ $media-reveal-alt-background: darken($reveal-background, 5) !default;
62
62
  color: $media-reveal-alt-color;
63
63
  }
64
64
  }
65
- }
66
65
 
67
- a {
68
- color: $media-reveal-alt-color;
69
- padding: $global-padding;
70
- background: none;
71
- outline: none;
66
+ a {
67
+ color: $media-reveal-alt-color;
68
+ padding: $global-padding;
69
+ background: none;
70
+ outline: none;
71
+ }
72
72
  }
73
73
  }
74
74
  }
@@ -19,8 +19,8 @@ $offcanvas-menu-submenu-background: darken($offcanvas-menu-background, 3) !defau
19
19
 
20
20
  @include breakpoint(large) {
21
21
  margin: 0;
22
- transform: none;
23
- transition: none;
22
+ transform: none !important;
23
+ transition: none !important;
24
24
  }
25
25
  }
26
26
 
@@ -305,9 +305,9 @@ $offcanvas-menu-submenu-background: darken($offcanvas-menu-background, 3) !defau
305
305
  @include breakpoint(large) {
306
306
  @include in-canvas;
307
307
  background: $offcanvas-menu-background;
308
- visibility: visible;
309
- transition: none;
310
- overflow: visible;
308
+ visibility: visible !important;
309
+ transition: none !important;
310
+ overflow: visible !important;
311
311
 
312
312
  @each $name, $size in $offcanvas-sizes {
313
313
  width: $size;
@@ -106,12 +106,12 @@ $panel-radius: $global-radius !default;
106
106
  border-width: 1px 0;
107
107
 
108
108
  &.first {
109
- border-top: 0;
109
+ border-top-width: 0;
110
110
  margin-top: -$panel-padding;
111
111
  }
112
112
 
113
113
  &.last {
114
- border-bottom: 0;
114
+ border-bottom-width: 0;
115
115
  margin-bottom: -$panel-padding;
116
116
  }
117
117
 
@@ -44,7 +44,7 @@ $panel-font-color-alt: $body-background !default;
44
44
  top: .8rem;
45
45
  }
46
46
 
47
- .panel {
47
+ > .panel {
48
48
  @include xy-grid(vertical, false);
49
49
  @include xy-grid-frame(true);
50
50
 
@@ -53,27 +53,27 @@ $panel-font-color-alt: $body-background !default;
53
53
  color: color-pick-contrast($color, ($panel-font-color, $panel-font-color-alt));
54
54
  }
55
55
  }
56
- }
57
56
 
58
- .panel-header {
59
- @include reveal-panel-header;
60
- }
57
+ > .panel-header {
58
+ @include reveal-panel-header;
59
+ }
61
60
 
62
- .panel-content {
63
- @include reveal-panel-content;
64
- }
61
+ > .panel-content {
62
+ @include reveal-panel-content;
63
+ }
65
64
 
66
- .panel-footer {
67
- @include reveal-panel-footer;
65
+ > .panel-footer {
66
+ @include reveal-panel-footer;
67
+ }
68
68
  }
69
69
 
70
- .panel, .panel-content {
70
+ > .panel, > .panel > .panel-content {
71
71
  @include reveal-panel-size;
72
72
  }
73
73
 
74
74
  &.full {
75
75
 
76
- .panel, .panel-content {
76
+ > .panel, > .panel > .panel-content {
77
77
  @include reveal-panel-size(true);
78
78
  }
79
79
  }
@@ -18,7 +18,6 @@ $shortcode-reveal-alt-background: darken($reveal-background, 5) !default;
18
18
  top: 0;
19
19
  left: 0;
20
20
  width: 100%;
21
- overflow-y: auto;
22
21
  }
23
22
  }
24
23
  }
@@ -28,57 +27,127 @@ $shortcode-reveal-alt-background: darken($reveal-background, 5) !default;
28
27
  height: 100%;
29
28
  }
30
29
 
30
+ .shortcode-form,
31
+ .shortcode-menu,
32
+ .shortcode-preview {
33
+ overflow-y: auto;
34
+ overflow-x: hidden;
35
+ height: 100%;
36
+ min-height: 100%;
37
+ }
38
+
31
39
  .shortcode-menu {
32
40
  @include xy-cell(shrink, false);
33
41
  background: $shortcode-reveal-alt-background;
34
- min-height: 100%;
35
- min-width: 12rem;
42
+ min-width: 15rem;
36
43
  border-color: smart-scale($shortcode-reveal-alt-background, 5%);
37
44
  border-style: solid;
38
45
  border-width: 0 1px 0 0;
39
46
 
40
- li {
47
+ .menu {
41
48
 
42
- &:not(:last-child) {
43
- border: 1px solid smart-scale($media-reveal-alt-background, 5%);
44
- border-width: 0 0 1px;
45
- }
49
+ li {
46
50
 
47
- &.is-active, &.active {
51
+ &:not(:last-child) {
52
+ border: 1px solid smart-scale($media-reveal-alt-background, 5%);
53
+ border-width: 0 0 1px;
54
+ }
55
+
56
+ &.is-active, &.active {
48
57
 
49
- a {
50
- background: smart-scale($media-reveal-alt-background, 5%);
51
- color: $media-reveal-alt-color;
58
+ a {
59
+ background: smart-scale($media-reveal-alt-background, 5%);
60
+ color: $media-reveal-alt-color;
61
+ }
52
62
  }
53
63
  }
54
- }
55
64
 
56
- a {
57
- color: $media-reveal-alt-color;
58
- padding: $global-padding;
59
- background: none;
60
- outline: none;
65
+ a {
66
+ color: $media-reveal-alt-color;
67
+ padding: $global-padding;
68
+ background: none;
69
+ outline: none;
70
+ }
61
71
  }
62
72
  }
63
73
 
64
74
  .shortcode-form {
65
- @include xy-cell(auto, false);
75
+ @include xy-cell(shrink, false);
66
76
  padding: $global-padding;
67
- min-height: 100%;
77
+ background: $shortcode-reveal-alt-background;
78
+ width: 24rem;
79
+ min-width: 20rem;
80
+ border-color: smart-scale($shortcode-reveal-alt-background, 5%);
81
+ border-style: solid;
82
+ border-width: 0 0 0 1px;
83
+
84
+ .panel-section {
85
+
86
+ &.last {
87
+ margin-bottom: $global-margin;
88
+
89
+ &.border {
90
+ border-bottom-width: 1px;
91
+ }
92
+ }
93
+ }
94
+
95
+ .shortcode-title {
96
+ margin: (-$global-padding) (-$global-padding) $global-padding;
97
+ padding: $global-padding;
98
+ border-bottom: 1px solid smart-scale($shortcode-reveal-alt-background, 5%);
99
+ }
68
100
  }
69
101
 
70
102
  .shortcode-preview {
71
103
  @include xy-cell(auto, false);
72
- background: $shortcode-reveal-alt-background;
73
104
  padding: $global-padding;
74
- min-height: 100%;
75
- border-color: smart-scale($shortcode-reveal-alt-background, 5%);
76
- border-style: solid;
77
- border-width: 0 0 0 1px;
105
+ min-width: 20rem;
106
+
107
+ .shortcode-content {
108
+ display: flex;
109
+ justify-content: center;
110
+ align-items: center;
111
+ }
112
+
113
+ .no-content {
114
+ font-size: 2rem;
115
+
116
+ i {
117
+ font-size: 5rem;
118
+ }
119
+ }
78
120
 
79
121
  iframe {
80
- height: 100%;
122
+ margin: 0;
123
+ display: block;
81
124
  width: 100%;
125
+ pointer-events: none;
126
+ user-select: none;
127
+ }
128
+ }
129
+
130
+ .shortcode-inner {
131
+ @include xy-grid(vertical, false);
132
+ min-height: 100%;
133
+
134
+ .shortcode-title {
135
+ @include xy-cell(shrink, false);
136
+ }
137
+
138
+ .shortcode-content {
139
+ @include xy-cell(auto, false);
140
+ }
141
+ }
142
+
143
+ .shortcode-title {
144
+ padding-bottom: $global-padding;
145
+ }
146
+
147
+ .shortcode-content {
148
+
149
+ .panel:last-child {
150
+ margin-bottom: 0;
82
151
  }
83
152
  }
84
153
  }
@@ -1,10 +1,15 @@
1
1
  // Text Editor Mixins
2
2
 
3
3
  @mixin tiny-mce-editor-input {
4
- opacity: 0;
5
4
  display: block;
6
5
  width: 100%;
7
6
  margin: 0;
7
+ border-color: smart-scale($panel-background, $panel-color-scale) !important;
8
+ box-shadow: none !important;
9
+ resize: none;
10
+ color: transparent;
11
+ min-height: 200px;
12
+ overflow: hidden;
8
13
  }
9
14
 
10
15
  @mixin tiny-mce-editor-basics {
@@ -51,6 +56,11 @@
51
56
  }
52
57
  }
53
58
 
59
+ .is-stuck {
60
+ top: 0;
61
+ border-bottom: 1px solid smart-scale($panel-background, $panel-color-scale);
62
+ }
63
+
54
64
  .mce-menubtn.mce-fixed-width span {
55
65
  position: relative;
56
66
  top: 1px;
@@ -1,3 +1,3 @@
1
1
  module BedrockSass
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bedrock_sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2017-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass