blob: 894160736ed13e3788f268d61a66211c69b9a56c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
@import '_inc/client/scss/functions/rem';
@import '_inc/client/scss/variables/colors';
.updated { // utlizes some core styles, overrides some others
&.jp-banner {
position: relative;
padding: 0;
}
.jp-banner__header {
font-size: rem( 18px ) ;
font-weight: 400;
margin-top: 0;
}
.jp-banner__button-container {
padding: rem( 12px ) 0 0;
}
}
.jp-banner .notice-dismiss {
text-decoration: none;
}
.jp-banner__description {
font-size: rem( 14px );
}
.jp-banner__description-container {
padding: rem( 16px );
}
// Plugin List Connection Banners
// Written in the style of React to stay consistent with the Jetpack interior
// wp-admin overrides
.updated.jp-wpcom-connect__container {
border-left: none;
padding: 0;
box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
@media screen and (max-width: 782px) {
padding: 0 !important; // override core cascades
}
}
.updated.jp-wpcom-connect__container .dops-button {
padding: 7px 14px 9px; // override wp-admin .updated a padding
}
.updated .notice-dismiss {
text-decoration: none;
}
// end overrides
.jp-wpcom-connect__container {
display: block;
position: relative;
box-sizing: border-box;
}
.jp-wpcom-connect__inner-container > a:first-child {
z-index: 1;
}
.jp-wpcom-connect__inner-container {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: left;
}
.jp-wpcom-connect__content-container {
max-width: 800px;
position: relative;
padding: rem( 32px );
z-index: 0;
@include minbreakpoint(tablet) {
padding: rem( 32px ) rem( 32px ) rem( 96px ) rem( 32px );
};
}
.jp-wpcom-connect__content-container p {
color: darken( $gray, 20% );
font-size: rem( 14px );
}
.jp-wpcom-connect__content-container h2 {
margin-top: 0;
color: #4F748E;
line-height: 1.6;
}
.jp-wpcom-connect__content-icon {
float: right;
margin: 0 0 rem( 36px ) rem( 36px );
}
.jp-wpcom-connect__slide {
display: none;
&.jp__slide-is-active {
display: block;
}
}
.jp-wpcom-connect__content-container .jp-banner__button-container {
@include minbreakpoint(tablet) {
position: absolute;
bottom: rem( 16px );
};
}
.jp-banner__button-container .dops-button {
margin: rem( 5px ) 0;
}
// Connection Banner Vertical Menu
.jp-wpcom-connect__vertical-nav {
background-color: #F3F6F8;
@include minbreakpoint(phablet) {
flex-direction: column;
justify-content: flex-start;
};
@include breakpoint(phablet) {
display: none; // hide nav on sm screens. becomes a linear tutorial
};
}
.jp-wpcom-connect__vertical-nav-container {
width: rem( 240px );
}
.vertical-menu__feature-item-label {
display: none;
}
@include minbreakpoint(phablet) {
.vertical-menu__feature-item {
display: flex;
flex-direction: row;
align-items: center;
border: none;
padding: rem( 8px );
border-bottom: 1px solid #c8d7e1;
border-right: 1px solid #c8d7e1;
border-left: 3px solid #F3F6F8;
background-color: #F3F6F8;
color: #87a6bc;
cursor: pointer;
// trick to hide the bottom border of the last menu item when the menu is the tallest element,
// but display the border when the overall container is taller than the menu
&:last-of-type {
position: relative;
top: 1px;
}
}
.vertical-menu__feature-item-is-selected {
border-left: 3px solid #0087be;
border-right: 1px solid #fff;
background-color: #fff;
color: #2e4453;
&.jp-feature-intro {
border-left: 3px solid #8CC258;
}
}
.vertical-menu__feature-item-icon {
width: rem( 20px );
height: rem( 20px );
padding: rem( 4px );
}
// svg fill swaps
.vertical-menu__feature-item {
svg {
fill: #86A6BD;
}
}
.vertical-menu__feature-item-is-selected {
svg {
fill: #3D596D;
}
&.jp-feature-intro {
svg {
fill: #8CC258;
}
}
&.wp-app-logo {
svg path {
fill: #3D596D;
}
}
}
// end svg fill swaps
.vertical-menu__feature-item-label {
display: block;
padding: rem( 8px );
}
};
|