bedrock_sass 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/_vendor/yoastseo/css/_analysis.scss +111 -0
- data/assets/_vendor/yoastseo/css/_colors.scss +24 -0
- data/assets/_vendor/yoastseo/css/_functions.scss +3 -0
- data/assets/_vendor/yoastseo/css/_icons.scss +29 -0
- data/assets/_vendor/yoastseo/css/_loading-dialog.scss +25 -0
- data/assets/_vendor/yoastseo/css/_marks.scss +8 -0
- data/assets/_vendor/yoastseo/css/_mixins.scss +11 -0
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +551 -0
- data/assets/_vendor/yoastseo/css/_tooltips.scss +236 -0
- data/assets/_vendor/yoastseo/css/analyzer.scss +6 -0
- data/assets/bedrock/js/bedrock.js +52221 -15817
- data/assets/bedrock/scss/_bedrock-components.scss +2 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +1 -0
- data/assets/bedrock/scss/components/panel.scss +27 -0
- data/assets/bedrock/scss/components/select-box.scss +9 -5
- data/assets/bedrock/scss/components/seo-analysis.scss +200 -0
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- metadata +13 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 147a4d23c49b327842e2033d8207b2d1d06f7d53
|
4
|
+
data.tar.gz: 92feb0b804cf044d4737816deb35d775d818917a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6657bf827260dad4d7a99910434cf31c133e5a0161ff9a8f253df73cb4449f879b8708f635e6fe4639bbf9b1115a34fceb90783d3f3058554eeeb73e4c1e411
|
7
|
+
data.tar.gz: 2b5154dbc7f056652bcd6a67bd212e9aec1377301e52be2dc6a84dff6c16b18dabb539817db5f5a45fd04d17c4616439c4ce1ae76f01fda5c5b7cc9c790a529c
|
@@ -0,0 +1,111 @@
|
|
1
|
+
/* css for analyzer */
|
2
|
+
@import "colors";
|
3
|
+
@import "icons";
|
4
|
+
|
5
|
+
.wpseoanalysis {
|
6
|
+
padding-right: 0px;
|
7
|
+
}
|
8
|
+
.wpseo-score-text {
|
9
|
+
float: left;
|
10
|
+
width: 86%;
|
11
|
+
/* make room for score and mark icons, consider to use a better layout model */
|
12
|
+
width: calc( 100% - 56px );
|
13
|
+
}
|
14
|
+
|
15
|
+
/* needs higher specificity than other score icons */
|
16
|
+
.assessment-results .wpseo-score-icon {
|
17
|
+
float: left;
|
18
|
+
width: 12px;
|
19
|
+
height: 12px;
|
20
|
+
margin: 3px 10px 0 0;
|
21
|
+
border-radius: 50%;
|
22
|
+
background: #888;
|
23
|
+
}
|
24
|
+
|
25
|
+
.wpseo-score-icon.good {
|
26
|
+
background-color: $color_good;
|
27
|
+
}
|
28
|
+
|
29
|
+
.wpseo-score-icon.ok {
|
30
|
+
background-color: $color_ok;
|
31
|
+
}
|
32
|
+
|
33
|
+
.wpseo-score-icon.bad {
|
34
|
+
background-color: $color_bad;
|
35
|
+
}
|
36
|
+
|
37
|
+
.wpseo-score-icon.na {
|
38
|
+
background-color: #999;
|
39
|
+
}
|
40
|
+
|
41
|
+
.wpseo-score-icon.noindex {
|
42
|
+
background-color: #1e8cbe;
|
43
|
+
}
|
44
|
+
|
45
|
+
li.score {
|
46
|
+
list-style-type: none !important;
|
47
|
+
margin-bottom: 6px;
|
48
|
+
}
|
49
|
+
|
50
|
+
li.score:after {
|
51
|
+
content: "";
|
52
|
+
display: table;
|
53
|
+
clear: both;
|
54
|
+
}
|
55
|
+
|
56
|
+
.screen-reader-text {
|
57
|
+
clip: rect(1px, 1px, 1px, 1px);
|
58
|
+
position: absolute !important;
|
59
|
+
height: 1px;
|
60
|
+
width: 1px;
|
61
|
+
overflow: hidden;
|
62
|
+
}
|
63
|
+
|
64
|
+
.assessment-results {
|
65
|
+
clear: both;
|
66
|
+
|
67
|
+
&__mark {
|
68
|
+
&.icon-eye {
|
69
|
+
&-inactive, &-active, &-disabled {
|
70
|
+
float: left;
|
71
|
+
border: 0;
|
72
|
+
width: 28px;
|
73
|
+
height: 28px;
|
74
|
+
margin: -5px 3px 0 3px;
|
75
|
+
padding: 4px;
|
76
|
+
border-radius: 100%;
|
77
|
+
outline: none;
|
78
|
+
background: no-repeat center;
|
79
|
+
background-size: 16px;
|
80
|
+
cursor: pointer;
|
81
|
+
}
|
82
|
+
|
83
|
+
&-inactive {
|
84
|
+
background-image: url(svg-icon-eye($color_marker_inactive));
|
85
|
+
}
|
86
|
+
|
87
|
+
&-active {
|
88
|
+
background-image: url(svg-icon-eye($color_marker_active));
|
89
|
+
background-color: #a4286a;
|
90
|
+
}
|
91
|
+
|
92
|
+
&-disabled {
|
93
|
+
background-image: url(svg-icon-eye($color_marker_disabled));
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
&:focus {
|
99
|
+
border-radius: 100%;
|
100
|
+
box-shadow: 0 0 0 1px #5b9dd9,
|
101
|
+
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
&__mark-container {
|
106
|
+
display: inline-block;
|
107
|
+
float: right;
|
108
|
+
width: 33px;
|
109
|
+
min-height: 1px;
|
110
|
+
}
|
111
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
$color_bad: #dc3232;
|
2
|
+
$color_ok: #ee7c1b;
|
3
|
+
$color_good: #7ad03a;
|
4
|
+
|
5
|
+
$color_caret: #555555;
|
6
|
+
$color_caret_hover: #bfbfbf;
|
7
|
+
$color_caret_focus: #1074a8;
|
8
|
+
|
9
|
+
$color_border: #f7f7f7;
|
10
|
+
|
11
|
+
$color_input_border: #bfbfbf;
|
12
|
+
$color_input_border_focus: #1074a8;
|
13
|
+
|
14
|
+
$color_progress_background: #f7f7f7;
|
15
|
+
|
16
|
+
$color_button: #f7f7f7;
|
17
|
+
$color_button_border: #dbdbdb;
|
18
|
+
|
19
|
+
$color_headings: #555555;
|
20
|
+
$color_buttons: #555555;
|
21
|
+
|
22
|
+
$color_marker_inactive: #555555;
|
23
|
+
$color_marker_active: #ffffff;
|
24
|
+
$color_marker_disabled: #e6e6e6;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@import "functions";
|
2
|
+
|
3
|
+
@function svg-icon-edit($color) {
|
4
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z" /></svg>');
|
5
|
+
}
|
6
|
+
|
7
|
+
@function svg-icon-eye($color) {
|
8
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z" /></svg>');
|
9
|
+
}
|
10
|
+
|
11
|
+
@function svg-icon-eye-slash($color) {
|
12
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M555 1335l78-141q-87-63-136-159t-49-203q0-121 61-225-229 117-381 353 167 258 427 375zm389-759q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm363-191q0 7-1 9-105 188-315 566t-316 567l-49 89q-10 16-28 16-12 0-134-70-16-10-16-28 0-12 44-87-143-65-263.5-173t-208.5-245q-20-31-20-69t20-69q153-235 380-371t496-136q89 0 180 17l54-97q10-16 28-16 5 0 18 6t31 15.5 33 18.5 31.5 18.5 19.5 11.5q16 10 16 27zm37 447q0 139-79 253.5t-209 164.5l280-502q8 45 8 84zm448 128q0 35-20 69-39 64-109 145-150 172-347.5 267t-419.5 95l74-132q212-18 392.5-137t301.5-307q-115-179-282-294l63-112q95 64 182.5 153t144.5 184q20 34 20 69z"/></svg>');
|
13
|
+
}
|
14
|
+
|
15
|
+
@function svg-icon-caret-right($color) {
|
16
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M1152 896q0 26-19 45l-448 448q-19 19-45 19t-45-19-19-45v-896q0-26 19-45t45-19 45 19l448 448q19 19 19 45z" /></svg>');
|
17
|
+
}
|
18
|
+
|
19
|
+
@function svg-icon-caret-left($color) {
|
20
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M1216 448v896q0 26-19 45t-45 19-45-19l-448-448q-19-19-19-45t19-45l448-448q19-19 45-19t45 19 19 45z"/></svg>');
|
21
|
+
}
|
22
|
+
|
23
|
+
@function svg-icon-desktop($color) {
|
24
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M1728 992v-832q0-13-9.5-22.5t-22.5-9.5h-1600q-13 0-22.5 9.5t-9.5 22.5v832q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5zm128-832v1088q0 66-47 113t-113 47h-544q0 37 16 77.5t32 71 16 43.5q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45q0-14 16-44t32-70 16-78h-544q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/></svg>');
|
25
|
+
}
|
26
|
+
|
27
|
+
@function svg-icon-mobile-phone($color) {
|
28
|
+
@return inline-svg('<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#{$color}" d="M976 1408q0-33-23.5-56.5t-56.5-23.5-56.5 23.5-23.5 56.5 23.5 56.5 56.5 23.5 56.5-23.5 23.5-56.5zm208-160v-704q0-13-9.5-22.5t-22.5-9.5h-512q-13 0-22.5 9.5t-9.5 22.5v704q0 13 9.5 22.5t22.5 9.5h512q13 0 22.5-9.5t9.5-22.5zm-192-848q0-16-16-16h-160q-16 0-16 16t16 16h160q16 0 16-16zm288-16v1024q0 52-38 90t-90 38h-512q-52 0-90-38t-38-90v-1024q0-52 38-90t90-38h512q52 0 90 38t38 90z"/></svg>');
|
29
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/* loading dialog */
|
2
|
+
|
3
|
+
.YoastSEO_msg .right,
|
4
|
+
.YoastSEO_msg .left{
|
5
|
+
display: none;
|
6
|
+
}
|
7
|
+
|
8
|
+
@keyframes animatedBackground {
|
9
|
+
from { background-position: 0 0; }
|
10
|
+
to { background-position: 100% 0; }
|
11
|
+
}
|
12
|
+
|
13
|
+
.YoastSEO_msg .bufferbar {
|
14
|
+
display: block;
|
15
|
+
width: 100%;
|
16
|
+
height: 12px;
|
17
|
+
/*multiple background definitions for the sake of browsercompatibility*/
|
18
|
+
|
19
|
+
background-image: linear-gradient(to left, #ffffff, #0063ff, #ffffff,#0063ff );
|
20
|
+
background-size: 300% 100%;
|
21
|
+
background-position: 0px 0px;
|
22
|
+
margin: 10px 0 10px 0;
|
23
|
+
border: 1px solid #dfdfdf;
|
24
|
+
animation: animatedBackground 5s linear infinite;
|
25
|
+
}
|
@@ -0,0 +1,551 @@
|
|
1
|
+
@import "colors";
|
2
|
+
@import "mixins";
|
3
|
+
@import "icons";
|
4
|
+
|
5
|
+
$snippet_width: 600px;
|
6
|
+
|
7
|
+
// Default caret icon: top alignment only suitable for the Snippet Preview.
|
8
|
+
@mixin svg-caret-before($color) {
|
9
|
+
background-image: url(svg-icon-caret-right($color));
|
10
|
+
|
11
|
+
position: absolute;
|
12
|
+
content: '';
|
13
|
+
top: -3px;
|
14
|
+
left: -22px;
|
15
|
+
|
16
|
+
display: block;
|
17
|
+
width: 24px;
|
18
|
+
height: 24px;
|
19
|
+
background-size: 25px;
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin svg-caret-before-rtl($color) {
|
23
|
+
background-image: url(svg-icon-caret-left($color));
|
24
|
+
}
|
25
|
+
|
26
|
+
.yoast-section {
|
27
|
+
width: auto;
|
28
|
+
max-width: $snippet_width + 40;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* css for snippet */
|
32
|
+
|
33
|
+
.snippet_container {
|
34
|
+
@include clearfix;
|
35
|
+
}
|
36
|
+
|
37
|
+
.snippet-editor {
|
38
|
+
|
39
|
+
&__view {
|
40
|
+
clear: both;
|
41
|
+
background: #fff;
|
42
|
+
|
43
|
+
&-toggle {
|
44
|
+
display: inline-block; /* Contain floated children and margins do not collapse. */
|
45
|
+
background-color: $color_button;
|
46
|
+
border: 1px solid $color_button_border;
|
47
|
+
border-radius: 4px;
|
48
|
+
margin-top: 10px;
|
49
|
+
margin-left: 20px;
|
50
|
+
vertical-align: top;
|
51
|
+
}
|
52
|
+
|
53
|
+
&-icon {
|
54
|
+
$size: 31px; /* To match the Edit snippet button height. */
|
55
|
+
width: $size;
|
56
|
+
height: $size;
|
57
|
+
float: left;
|
58
|
+
cursor: pointer;
|
59
|
+
background-color: transparent;
|
60
|
+
background-repeat: no-repeat;
|
61
|
+
background-position: center, center;
|
62
|
+
border: none;
|
63
|
+
border-bottom: 4px solid transparent;
|
64
|
+
outline: none; /* Reset native outline especially on webkit on Macs. */
|
65
|
+
|
66
|
+
&:hover, &:focus {
|
67
|
+
background-color: #ffffff;
|
68
|
+
border-color: $color_caret_focus;
|
69
|
+
transition: .15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;
|
70
|
+
}
|
71
|
+
|
72
|
+
&--active {
|
73
|
+
border-color: $color_caret;
|
74
|
+
transition: .15s color ease-in-out,.15s background-color ease-in-out,.15s border-color ease-in-out;
|
75
|
+
}
|
76
|
+
|
77
|
+
// Adjust the tooltips position because buttons have a 4px bottom border.
|
78
|
+
&.yoast-tooltip:before {
|
79
|
+
bottom: -10px
|
80
|
+
}
|
81
|
+
|
82
|
+
&.yoast-tooltip:after {
|
83
|
+
margin-top: 10px;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&-icon-desktop {
|
88
|
+
background-image: url(svg-icon-desktop($color_caret));
|
89
|
+
background-size: 18px;
|
90
|
+
|
91
|
+
&:hover, &:focus {
|
92
|
+
background-image: url( svg-icon-desktop( $color_caret_focus ) );
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
&-icon-mobile {
|
97
|
+
background-image: url(svg-icon-mobile-phone($color_caret));
|
98
|
+
background-size: 22px;
|
99
|
+
|
100
|
+
&:hover, &:focus {
|
101
|
+
background-image: url( svg-icon-mobile-phone( $color_caret_focus ) );
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
&--desktop {
|
106
|
+
width: $snippet_width + 40;
|
107
|
+
max-width: 100%;
|
108
|
+
padding: 0 20px;
|
109
|
+
overflow: auto;
|
110
|
+
}
|
111
|
+
|
112
|
+
// Used for the desktop view and then overridden for the mobile one:
|
113
|
+
// title and slug don't wrap in new lines and use ellipsis. The meta
|
114
|
+
// description is allowed to wrap. All three elements have a 600 pixels fixed width.
|
115
|
+
.snippet_container {
|
116
|
+
&__title {
|
117
|
+
width: $snippet_width;
|
118
|
+
white-space: nowrap;
|
119
|
+
|
120
|
+
& .title {
|
121
|
+
display: inline-block;
|
122
|
+
max-width: $snippet_width;
|
123
|
+
overflow: hidden;
|
124
|
+
text-overflow: ellipsis;
|
125
|
+
vertical-align: top;
|
126
|
+
|
127
|
+
&#snippet_sitename {
|
128
|
+
display: inline; // Consider to remove this element from the template, probably no more used.
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
&__url {
|
134
|
+
width: $snippet_width;
|
135
|
+
white-space: nowrap;
|
136
|
+
line-height: 1; // Avoid to inherit line-height.
|
137
|
+
|
138
|
+
& .urlFull {
|
139
|
+
display: inline-block;
|
140
|
+
max-width: $snippet_width - 14; // down_arrow 8+6 pixels.
|
141
|
+
overflow: hidden;
|
142
|
+
text-overflow: ellipsis;
|
143
|
+
vertical-align: top;
|
144
|
+
font-size: 14px;
|
145
|
+
line-height: 16px;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
& .down_arrow {
|
150
|
+
display: inline-block;
|
151
|
+
border-left: 4px solid transparent;
|
152
|
+
border-right: 4px solid transparent;
|
153
|
+
border-top: 5px solid #006621;
|
154
|
+
margin-top: 6px;
|
155
|
+
margin-left: 6px;
|
156
|
+
vertical-align: top;
|
157
|
+
}
|
158
|
+
|
159
|
+
&__meta {
|
160
|
+
width: $snippet_width;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
&--mobile {
|
165
|
+
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
166
|
+
border-radius: 2px;
|
167
|
+
border-bottom: 1px hidden #fff;
|
168
|
+
margin: 0 20px 10px;
|
169
|
+
padding: 11px 0;
|
170
|
+
|
171
|
+
// In the mobile view title, slug, and meta description have a fluid width.
|
172
|
+
// Title and meta description wrap in new lines. Slug doesn't wrap.
|
173
|
+
.snippet_container {
|
174
|
+
display: block;
|
175
|
+
line-height: 20px;
|
176
|
+
|
177
|
+
&__title, &__url, &__meta {
|
178
|
+
width: 100%;
|
179
|
+
// Worth noting that inside the yoast-section everything is already border-box.
|
180
|
+
// Setting this property on specific elements is needed just for the browserified example.
|
181
|
+
box-sizing: border-box;
|
182
|
+
}
|
183
|
+
|
184
|
+
&__title {
|
185
|
+
padding: 0 16px;
|
186
|
+
white-space: normal;
|
187
|
+
overflow: visible;
|
188
|
+
word-wrap: break-word;
|
189
|
+
|
190
|
+
.title {
|
191
|
+
font-size: 16px;
|
192
|
+
line-height: 20px;
|
193
|
+
}
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
&__url {
|
198
|
+
border-bottom: 1px solid #ebebeb;
|
199
|
+
padding: 0 16px 9px;
|
200
|
+
margin-bottom: 9px;
|
201
|
+
|
202
|
+
// In the mobile view there's no down arrow.
|
203
|
+
& .urlFull {
|
204
|
+
max-width: 100%;
|
205
|
+
font-size: 14px;
|
206
|
+
line-height: 20px;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
// In the mobile view there's no down arrow.
|
211
|
+
& .down_arrow {
|
212
|
+
display: none;
|
213
|
+
}
|
214
|
+
|
215
|
+
&__meta {
|
216
|
+
font-size: 14px;
|
217
|
+
line-height: 20px;
|
218
|
+
padding: 0 16px;
|
219
|
+
}
|
220
|
+
|
221
|
+
& .desc {
|
222
|
+
font-size: 14px;
|
223
|
+
line-height: 20px;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
&__is-scrollable-hintwrapper {
|
230
|
+
display: none;
|
231
|
+
margin: 1em 0 5px;
|
232
|
+
text-align: center;
|
233
|
+
|
234
|
+
.snippet-editor__view--desktop.snippet-editor__view--desktop-has-scroll + & {
|
235
|
+
display: block;
|
236
|
+
}
|
237
|
+
}
|
238
|
+
|
239
|
+
&__is-scrollable-hint {
|
240
|
+
display: inline-block;
|
241
|
+
|
242
|
+
&:before {
|
243
|
+
content: "\21c4";
|
244
|
+
display: inline-block;
|
245
|
+
margin-right: 10px;
|
246
|
+
font-size: 20px;
|
247
|
+
line-height: inherit;
|
248
|
+
vertical-align: text-top;
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
&__container {
|
253
|
+
position: relative;
|
254
|
+
cursor: pointer;
|
255
|
+
|
256
|
+
&.editable-preview__container--no-caret {
|
257
|
+
cursor: auto;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
&__heading {
|
262
|
+
padding: 8px 20px;
|
263
|
+
font-size: 0.9rem;
|
264
|
+
margin: 0 0 15px;
|
265
|
+
font-family: "Open Sans", sans-serif;
|
266
|
+
font-weight: 300;
|
267
|
+
color: $color_headings;
|
268
|
+
|
269
|
+
&-editor {
|
270
|
+
border-top: 1px solid $color_border;
|
271
|
+
}
|
272
|
+
|
273
|
+
&-icon {
|
274
|
+
background-repeat: no-repeat;
|
275
|
+
/* rtlcss needs this as separate property */
|
276
|
+
background-position: left 20px top 0.6em;
|
277
|
+
background-size: 16px;
|
278
|
+
|
279
|
+
padding-left: 45px;
|
280
|
+
|
281
|
+
&-eye {
|
282
|
+
background-image: url(svg-icon-eye($color_headings));
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
// Display the caret icons in the Snippet Preview.
|
290
|
+
&__container {
|
291
|
+
&:hover {
|
292
|
+
&:before {
|
293
|
+
@include svg-caret-before($color_caret_hover);
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
&--focus {
|
298
|
+
&:hover:before,
|
299
|
+
&:before {
|
300
|
+
@include svg-caret-before($color_caret);
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
&__preview {
|
306
|
+
padding: 0 0 15px;
|
307
|
+
max-width: $snippet_width + 40;
|
308
|
+
|
309
|
+
& #help-yoast-snippetpreview {
|
310
|
+
padding: 0 20px;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
&__button {
|
315
|
+
background: $color_button;
|
316
|
+
border: 1px solid $color_button_border;
|
317
|
+
border-radius: 4px;
|
318
|
+
color: $color_buttons;
|
319
|
+
|
320
|
+
padding: 8px 10px;
|
321
|
+
cursor: pointer;
|
322
|
+
|
323
|
+
font-size: 0.8rem;
|
324
|
+
line-height: 15px; /* Avoid browsers rounding that affect the button's height (Firefox computed value would be 15.4333px otherwise). */
|
325
|
+
}
|
326
|
+
|
327
|
+
&__edit-button {
|
328
|
+
background: $color_button url(svg-icon-edit($color_buttons)) no-repeat;
|
329
|
+
/* rtlcss needs this as separate property */
|
330
|
+
background-position: left 8px top 50%;
|
331
|
+
background-size: 16px;
|
332
|
+
padding-left: 32px;
|
333
|
+
display: inline-block; /* Margins do not collapse. */
|
334
|
+
box-sizing: border-box;
|
335
|
+
margin-top: 10px;
|
336
|
+
}
|
337
|
+
|
338
|
+
&__form {
|
339
|
+
padding: 20px;
|
340
|
+
}
|
341
|
+
|
342
|
+
// Display the caret icons in the Snippet Editor.
|
343
|
+
// @todo: consider to use the new method used for the Social Previews, which
|
344
|
+
// doesn't use the labels but uses dedicated elements as hooks in the DOM.
|
345
|
+
&__label {
|
346
|
+
display: block;
|
347
|
+
width: 100%;
|
348
|
+
margin-top: 1em;
|
349
|
+
position: relative;
|
350
|
+
|
351
|
+
&:first-child {
|
352
|
+
margin-top: 0;
|
353
|
+
}
|
354
|
+
|
355
|
+
&--hover {
|
356
|
+
&:before {
|
357
|
+
@include svg-caret-before($color_caret_hover);
|
358
|
+
top: 20px; // Override default top alignment.
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
&--focus {
|
363
|
+
&:before {
|
364
|
+
@include svg-caret-before($color_caret_focus);
|
365
|
+
top: 20px; // Override default top alignment.
|
366
|
+
}
|
367
|
+
}
|
368
|
+
}
|
369
|
+
|
370
|
+
&__input {
|
371
|
+
display: block;
|
372
|
+
width: 100%;
|
373
|
+
margin-top: 5px;
|
374
|
+
border: 1px solid $color_input_border;
|
375
|
+
|
376
|
+
max-width: 100%;
|
377
|
+
box-sizing: border-box;
|
378
|
+
|
379
|
+
&:focus {
|
380
|
+
border: 1px solid $color_input_border_focus;
|
381
|
+
outline: none;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
}
|
385
|
+
|
386
|
+
/* Swap icons for RTL. */
|
387
|
+
.rtl .snippet-editor {
|
388
|
+
&__container {
|
389
|
+
|
390
|
+
&:hover {
|
391
|
+
&:before {
|
392
|
+
@include svg-caret-before-rtl($color_caret_hover);
|
393
|
+
}
|
394
|
+
}
|
395
|
+
|
396
|
+
&--focus {
|
397
|
+
&:hover:before,
|
398
|
+
&:before {
|
399
|
+
@include svg-caret-before-rtl($color_caret);
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
&__label {
|
405
|
+
&--hover {
|
406
|
+
&:before {
|
407
|
+
@include svg-caret-before-rtl($color_caret_hover);
|
408
|
+
}
|
409
|
+
}
|
410
|
+
|
411
|
+
&--focus {
|
412
|
+
&:before {
|
413
|
+
@include svg-caret-before-rtl($color_caret_focus);
|
414
|
+
}
|
415
|
+
}
|
416
|
+
}
|
417
|
+
}
|
418
|
+
|
419
|
+
.snippet-editor__meta-description {
|
420
|
+
height: 70px;
|
421
|
+
}
|
422
|
+
|
423
|
+
.snippet-editor__submit {
|
424
|
+
margin-top: 1em;
|
425
|
+
}
|
426
|
+
|
427
|
+
#snippet_cite {
|
428
|
+
min-width: 20px;
|
429
|
+
}
|
430
|
+
|
431
|
+
#meta_container {
|
432
|
+
clear: both;
|
433
|
+
min-height: 20px;
|
434
|
+
}
|
435
|
+
|
436
|
+
.snippet_container .title {
|
437
|
+
color: #1e0fbe;
|
438
|
+
text-decoration: none;
|
439
|
+
font-size: 18px;
|
440
|
+
line-height: 1.2;
|
441
|
+
font-weight: normal;
|
442
|
+
margin: 0;
|
443
|
+
}
|
444
|
+
|
445
|
+
.snippet_container .desc {
|
446
|
+
font-size: 13px;
|
447
|
+
line-height: 1.4;
|
448
|
+
}
|
449
|
+
|
450
|
+
.snippet_container .url {
|
451
|
+
color: #006621;
|
452
|
+
font-style: normal;
|
453
|
+
|
454
|
+
strong {
|
455
|
+
// Ensure it's a full bold regardless of the inherited styles.
|
456
|
+
font-weight: 700;
|
457
|
+
}
|
458
|
+
}
|
459
|
+
|
460
|
+
.snippet_container .desc-default {
|
461
|
+
color: #545454;
|
462
|
+
|
463
|
+
strong {
|
464
|
+
color: #6a6a6a;
|
465
|
+
// Ensure it's a full bold regardless of the inherited styles.
|
466
|
+
font-weight: 700;
|
467
|
+
}
|
468
|
+
}
|
469
|
+
|
470
|
+
.snippet_container .desc-render {
|
471
|
+
color: #777;
|
472
|
+
}
|
473
|
+
|
474
|
+
.snippet_container .tooLong {
|
475
|
+
color: #f00 !important;
|
476
|
+
}
|
477
|
+
|
478
|
+
.snippet-editor__field--invalid {
|
479
|
+
color: #f00;
|
480
|
+
}
|
481
|
+
|
482
|
+
.snippet-editor {
|
483
|
+
&__progress {
|
484
|
+
appearance: none;
|
485
|
+
|
486
|
+
border: none;
|
487
|
+
|
488
|
+
box-sizing: border-box;
|
489
|
+
display: block;
|
490
|
+
|
491
|
+
margin-top: 5px;
|
492
|
+
height: 8px;
|
493
|
+
width: 100%;
|
494
|
+
|
495
|
+
&::-webkit-progress-bar {
|
496
|
+
background-color: $color_progress_background;
|
497
|
+
height: 8px;
|
498
|
+
border: 1px solid $color_input_border;
|
499
|
+
}
|
500
|
+
|
501
|
+
&--fallback {
|
502
|
+
background-color: $color_progress_background;
|
503
|
+
height: 8px;
|
504
|
+
border: 1px solid $color_input_border;
|
505
|
+
}
|
506
|
+
}
|
507
|
+
|
508
|
+
&__progress-bar {
|
509
|
+
width: 0;
|
510
|
+
height: 100%;
|
511
|
+
max-width: 100%;
|
512
|
+
}
|
513
|
+
|
514
|
+
&__date {
|
515
|
+
color: #808080;
|
516
|
+
font-size: 13px;
|
517
|
+
line-height: 1.4;
|
518
|
+
}
|
519
|
+
|
520
|
+
&--hidden {
|
521
|
+
display: none;
|
522
|
+
}
|
523
|
+
}
|
524
|
+
|
525
|
+
.yoast-measurement-elements-holder {
|
526
|
+
position: absolute;
|
527
|
+
left: -9999em;
|
528
|
+
}
|
529
|
+
|
530
|
+
@mixin progress-bar-color ($class, $color) {
|
531
|
+
#{$class}[value] {
|
532
|
+
color: $color;
|
533
|
+
|
534
|
+
&::-webkit-progress-value {
|
535
|
+
background-color: $color;
|
536
|
+
transition: width 250ms;
|
537
|
+
}
|
538
|
+
|
539
|
+
&::-moz-progress-bar {
|
540
|
+
background-color: $color;
|
541
|
+
}
|
542
|
+
|
543
|
+
.snippet-editor__progress-bar {
|
544
|
+
background-color: $color;
|
545
|
+
}
|
546
|
+
}
|
547
|
+
}
|
548
|
+
|
549
|
+
@include progress-bar-color(".snippet-editor__progress--bad", $color_bad);
|
550
|
+
@include progress-bar-color(".snippet-editor__progress--ok", $color_ok);
|
551
|
+
@include progress-bar-color(".snippet-editor__progress--good", $color_good);
|