_banners.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. @import '_inc/client/scss/functions/rem';
  2. @import '_inc/client/scss/variables/colors';
  3. .updated { // utlizes some core styles, overrides some others
  4. &.jp-banner {
  5. position: relative;
  6. padding: 0;
  7. }
  8. .jp-banner__header {
  9. font-size: rem( 18px ) ;
  10. font-weight: 400;
  11. margin-top: 0;
  12. }
  13. .jp-banner__button-container {
  14. padding: rem( 12px ) 0 0;
  15. }
  16. .jp-banner__tos-blurb {
  17. display: block;
  18. padding: rem( 6px ) 0;
  19. line-height: 1.5;
  20. font-size: rem( 11px );
  21. color: $gray-dark;
  22. }
  23. }
  24. .jp-banner .notice-dismiss {
  25. text-decoration: none;
  26. }
  27. .jp-banner__description {
  28. font-size: rem( 14px );
  29. }
  30. .jp-banner__description-container {
  31. padding: rem( 16px );
  32. }
  33. // Full Page Connection Banner
  34. // only show when Jetpack is disconnected
  35. .jetpack-disconnected {
  36. .jp-connect-full__container {
  37. box-sizing: border-box;
  38. position: absolute;
  39. top: 0;
  40. right: 0;
  41. bottom: rem( 20px );
  42. left: 0;
  43. z-index: 9999; // to sit over other elements
  44. background: rgb( 241, 241, 241 );
  45. text-align: center;
  46. .jp-connect-full__container-card {
  47. padding: rem( 48px ) rem( 64px ) rem( 96px );
  48. background: white;
  49. margin: 1em;
  50. img.jetpack-logo {
  51. width: 160px;
  52. }
  53. img.support-characters {
  54. margin-top: rem( 24px );
  55. width: 50%;
  56. }
  57. }
  58. h4 {
  59. line-height: 1.25;
  60. font-size: rem( 22px );
  61. font-weight: normal;
  62. margin: 1em 0;
  63. }
  64. @include minbreakpoint(tablet) {
  65. left: -20px; // fill gap of wp-admin sidebar right margin on large screens
  66. };
  67. }
  68. }
  69. // dismiss
  70. .jp-connect-full__svg-dismiss {
  71. position: absolute;
  72. right: 0;
  73. top: 0;
  74. fill: $gray;
  75. padding: rem( 16px );
  76. height: rem( 24px );
  77. width: rem( 24px );
  78. @include breakpoint(phablet) {
  79. top: rem( 50px );
  80. };
  81. }
  82. .jp-connect-full__step-header {
  83. max-width: 700px;
  84. margin: 0 auto;
  85. line-height: 1.5;
  86. h2 {
  87. margin: rem( 24px ) 0 0;
  88. font-size: rem( 22px );
  89. font-weight: bold;
  90. color: black;
  91. }
  92. h3 {
  93. color: $gray-text-min;
  94. font-size: rem( 16px );
  95. font-weight: normal;
  96. margin: rem( 10px ) 0 rem( 24px );
  97. }
  98. &.bottom {
  99. margin-top: rem( 80px );
  100. }
  101. }
  102. .jp-connect-full__tos-blurb {
  103. font-size: rem( 11px );
  104. margin: 0 auto rem( 24px );
  105. color: $gray-text-min;
  106. a{
  107. text-decoration: none;
  108. color: $green-primary;
  109. }
  110. }
  111. .jp-connect-full__button-container {
  112. margin: 0;
  113. .dops-button.is-primary {
  114. background: $green-primary;
  115. border-color: $green-secondary;
  116. &:hover, &:focus {
  117. background: $green-secondary;
  118. border-color: $green-dark;
  119. }
  120. }
  121. }
  122. .jp-connect-full__dismiss {
  123. cursor: pointer;
  124. }
  125. .jp-connect-full__dismiss-paragraph {
  126. font-size: .6875rem;
  127. a {
  128. cursor: pointer;
  129. color: $gray-text-min;
  130. text-decoration: none;
  131. }
  132. a:hover {
  133. text-decoration: underline;
  134. }
  135. }
  136. .jp-connect-full__slide {
  137. max-width: 750px;
  138. margin: 4em auto;
  139. display: flex;
  140. flex-direction: row;
  141. justify-content: stretch;
  142. .jp-connect-full__slide-card {
  143. flex: 1;
  144. text-align: left;
  145. }
  146. .illustration {
  147. img {
  148. margin: 2.5em 1em;
  149. display: block;
  150. @include minbreakpoint(phablet) {
  151. margin: 2.5em auto;
  152. width: 75%;
  153. };
  154. }
  155. }
  156. }
  157. .jp-connect-full__step-support {
  158. max-width: 700px;
  159. margin: 0 auto;
  160. line-height: 1.25;
  161. h2 {
  162. margin: rem( 16px ) 0 0;
  163. font-size: rem( 22px );
  164. font-weight: normal;
  165. color: black;
  166. }
  167. h3 {
  168. color: $gray-text-min;
  169. font-size: rem( 16px );
  170. font-weight: normal;
  171. margin: rem( 10px ) 0 rem( 24px );
  172. }
  173. }
  174. // Plugin List Connection Banners
  175. // Written in the style of React to stay consistent with the Jetpack interior
  176. // wp-admin overrides
  177. .updated.jp-wpcom-connect__container {
  178. border-left: none;
  179. padding: 0;
  180. box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
  181. @media screen and (max-width: 782px) {
  182. padding: 0 !important; // override core cascades
  183. }
  184. }
  185. .updated.jp-wpcom-connect__container .dops-button {
  186. padding: 7px 14px 9px; // override wp-admin .updated a padding
  187. }
  188. .updated .notice-dismiss {
  189. z-index: 1;
  190. text-decoration: none;
  191. }
  192. // end overrides
  193. .jp-wpcom-connect__container {
  194. display: block;
  195. position: relative;
  196. box-sizing: border-box;
  197. }
  198. .jp-wpcom-connect__inner-container > a:first-child {
  199. z-index: 1;
  200. }
  201. .jp-wpcom-connect__inner-container {
  202. display: flex;
  203. flex-direction: row;
  204. flex-wrap: nowrap;
  205. justify-content: left;
  206. }
  207. .jp-wpcom-connect__content-container {
  208. width: 1250px;
  209. position: relative;
  210. padding: rem( 32px );
  211. z-index: 0;
  212. @include minbreakpoint(tablet) {
  213. padding: rem( 32px ) rem( 32px ) rem( 96px ) rem( 32px );
  214. };
  215. }
  216. .jp-wpcom-connect__content-container p {
  217. color: darken( $gray, 20% );
  218. font-size: rem( 14px );
  219. }
  220. .jp-wpcom-connect__content-container h2 {
  221. margin-top: 0;
  222. color: #4F748E;
  223. line-height: 1.6;
  224. }
  225. .jp-wpcom-connect__content-icon {
  226. float: right;
  227. margin: 0 rem( 24px ) 0 rem( 36px );
  228. &.jp-connect-illo {
  229. @include breakpoint(tablet) {
  230. float: none;
  231. width: 100%;
  232. text-align: center;
  233. margin: rem( 36px ) 0 rem( 24px );
  234. }
  235. }
  236. }
  237. .jp-wpcom-connect__slide {
  238. display: none;
  239. &.jp__slide-is-active {
  240. display: block;
  241. }
  242. }
  243. .jp-wpcom-connect__content-container .jp-banner__button-container {
  244. @include minbreakpoint(tablet) {
  245. position: absolute;
  246. bottom: rem( 8px );
  247. };
  248. }
  249. .jp-banner__button-container .dops-button {
  250. margin: rem( 5px ) 0;
  251. &.is-primary {
  252. background: $green-primary;
  253. border-color: $green-secondary;
  254. &:hover, &:focus {
  255. background: $green-secondary;
  256. border-color: $green-dark;
  257. }
  258. }
  259. }
  260. // Connection Banner Vertical Menu
  261. .jp-wpcom-connect__vertical-nav {
  262. background-color: #F3F6F8;
  263. @include minbreakpoint(phablet) {
  264. flex-direction: column;
  265. justify-content: flex-start;
  266. };
  267. @include breakpoint(phablet) {
  268. display: none; // hide nav on sm screens. becomes a linear tutorial
  269. };
  270. }
  271. .jp-wpcom-connect__vertical-nav-container {
  272. width: rem( 240px );
  273. }
  274. .vertical-menu__feature-item-label {
  275. display: none;
  276. }
  277. @include minbreakpoint(phablet) {
  278. .vertical-menu__feature-item {
  279. display: flex;
  280. flex-direction: row;
  281. align-items: center;
  282. border: none;
  283. padding: rem( 8px );
  284. border-bottom: 1px solid #c8d7e1;
  285. border-right: 1px solid #c8d7e1;
  286. border-left: 3px solid #F3F6F8;
  287. background-color: #F3F6F8;
  288. color: #87a6bc;
  289. cursor: pointer;
  290. // trick to hide the bottom border of the last menu item when the menu is the tallest element,
  291. // but display the border when the overall container is taller than the menu
  292. &:last-of-type {
  293. position: relative;
  294. top: 1px;
  295. }
  296. }
  297. .vertical-menu__feature-item-is-selected {
  298. border-left: 3px solid #0087be;
  299. border-right: 1px solid #fff;
  300. background-color: #fff;
  301. color: #2e4453;
  302. &.jp-feature-intro {
  303. border-left: 3px solid $green-primary;
  304. }
  305. }
  306. .vertical-menu__feature-item-icon {
  307. width: rem( 20px );
  308. height: rem( 20px );
  309. padding: rem( 4px );
  310. text-align: center;
  311. }
  312. // svg fill swaps
  313. .vertical-menu__feature-item {
  314. svg {
  315. fill: #86A6BD;
  316. }
  317. }
  318. .vertical-menu__feature-item-is-selected {
  319. svg {
  320. fill: #3D596D;
  321. }
  322. &.jp-feature-intro {
  323. svg {
  324. fill: $green-primary;
  325. }
  326. }
  327. &.wp-app-logo {
  328. svg path {
  329. fill: #3D596D;
  330. }
  331. }
  332. }
  333. // end svg fill swaps
  334. .vertical-menu__feature-item-label {
  335. display: block;
  336. padding: rem( 8px );
  337. }
  338. };