_main.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. // ==========================================================================
  2. // Main Layout
  3. // ==========================================================================
  4. .configure .frame.top.fixed {
  5. @include breakpoint(tablet){
  6. padding-left: 0;
  7. };
  8. }
  9. // ==========================================================================
  10. // Main author styles
  11. // ==========================================================================
  12. .wrap.inner,
  13. .page-content {
  14. max-width: 950px;
  15. margin: 0 auto;
  16. li {
  17. line-height: 23px;
  18. }
  19. }
  20. .page-content {
  21. @include breakpoint(large-phone){
  22. margin-top: 0;
  23. };
  24. }
  25. .wrap.inner {
  26. @include breakpoint(large-desktop) {
  27. background: $clouds;
  28. padding: 15px;
  29. };
  30. @include breakpoint(large-phone) {
  31. margin-top: em(24px);
  32. };
  33. }
  34. .page-content.about {
  35. position: relative;
  36. z-index: 10;
  37. @include breakpoint(large-desktop){
  38. background: $clouds;
  39. padding: 15px;
  40. };
  41. }
  42. .page-content.configure {
  43. @include breakpoint(large-desktop){
  44. background: $clouds;
  45. };
  46. }
  47. .footer nav {
  48. max-width: 550px;
  49. margin: 0 auto;
  50. }
  51. // ==========================================================================
  52. // Main navigation
  53. // ==========================================================================
  54. .header {
  55. left: 0;
  56. right: 0;
  57. background: $green;
  58. }
  59. .header-nav {
  60. li {
  61. line-height: 60px;
  62. }
  63. a {
  64. padding: 0 em(10px);
  65. line-height: 24px;
  66. }
  67. .jetpack-logo {
  68. a {
  69. display: inline-block;
  70. position: relative;
  71. width: 214px;
  72. margin-right: 6px;
  73. background: url(../images/jetpack-logo.png) center center no-repeat;
  74. background: url(../images/jetpack-logo.svg) center center no-repeat, none;
  75. background-size: 183px auto;
  76. color: #fff;
  77. line-height: 60px;
  78. font-weight: normal;
  79. span {
  80. text-indent: -9999px;
  81. visibility: hidden;
  82. }
  83. // needs to be cleaned up and removed - jeffgolenski
  84. &:before {
  85. content: '';
  86. position: absolute;
  87. top: 0;
  88. left: 0;
  89. width: 100%;
  90. height: 100%;
  91. background-size: 183px 32px;
  92. }
  93. }
  94. }
  95. .jetpack-modules + .jetpack-modules {
  96. margin-left: 15px;
  97. }
  98. }
  99. .main-nav {
  100. float: left;
  101. li {
  102. margin: 0;
  103. }
  104. @include breakpoint(desktop){
  105. font-size: 13px;
  106. };
  107. }
  108. // Help tab
  109. .jetpack-pagestyles {
  110. #screen-meta {
  111. margin: 0;
  112. }
  113. #screen-meta-links .screen-meta-toggle {
  114. z-index: 2;
  115. }
  116. #screen-options-link-wrap, #contextual-help-link-wrap {
  117. border: none;
  118. }
  119. .update-nag {
  120. display: none;
  121. }
  122. }
  123. // ==========================================================================
  124. // Modal
  125. // ==========================================================================
  126. .loading {
  127. bottom: 50%;
  128. position: absolute;
  129. top: 50%;
  130. width: 100%;
  131. span {
  132. color: #999;
  133. }
  134. }
  135. .modal {
  136. background: #fff;
  137. position: fixed;
  138. top: 52px;
  139. bottom: 20px;
  140. right: 20px;
  141. left: 20px;
  142. margin-left: 160px;
  143. display: none;
  144. box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1);
  145. z-index: 500;
  146. .close {
  147. position: absolute;
  148. top: 0;
  149. right: 0;
  150. font: 300 em(24px) 'genericons' !important;
  151. color: #777;
  152. content: '\f405';
  153. display: inline-block;
  154. padding: em(4px) em(10px) em(6px);
  155. z-index: 5;
  156. &:hover {
  157. background: #eee;
  158. opacity: 0.8;
  159. }
  160. &:active {
  161. background: #eee;
  162. opacity: 0.4;
  163. }
  164. }
  165. .content-container {
  166. position: absolute;
  167. top: 0;
  168. right: 0;
  169. bottom: 0;
  170. left: 0;
  171. overflow: auto;
  172. padding: em(30px, 14px);
  173. }
  174. .content {
  175. margin: 0 auto;
  176. max-width: 900px;
  177. text-align: left;
  178. }
  179. h2 {
  180. text-align: left;
  181. margin-top: 0;
  182. color: #5d6d74;
  183. font-weight: 300;
  184. line-height: 32px;
  185. text-shadow: 0 1px 1px #fff;
  186. @include breakpoint(large-phone){
  187. font-size: 26px;
  188. };
  189. }
  190. h5 {
  191. clear: left;
  192. }
  193. p {
  194. font-size: em(16px, 13px);
  195. }
  196. footer {
  197. position: absolute;
  198. left: 0;
  199. bottom: 0;
  200. width: 100%;
  201. padding: 12px 20px;
  202. border-top: 1px solid #ddd;
  203. background: #fff;
  204. text-align: right;
  205. ul {
  206. margin: 0;
  207. }
  208. li {
  209. display: inline-block;
  210. margin: 0;
  211. }
  212. }
  213. .button-secondary,
  214. .button-primary:active {
  215. // fixing weird core bug thingy
  216. vertical-align: baseline;
  217. }
  218. @include breakpoint(desktop){
  219. bottom: 5%;
  220. margin-left: 36px;
  221. font-size: 80%;
  222. .content {
  223. top: 38px;
  224. }
  225. };
  226. @include breakpoint(tablet){
  227. top: 66px;
  228. margin-left: 0;
  229. };
  230. @include breakpoint(phablet){
  231. top: 10px;
  232. right: 10px;
  233. bottom: 10px;
  234. left: 10px;
  235. }
  236. }
  237. .jp-info-img {
  238. float: right;
  239. margin: 0 0 8px 30px;
  240. img {
  241. border: 1px solid #ddd;
  242. max-width: 100%;
  243. height: auto;
  244. &:first-child {
  245. margin-top: 0;
  246. }
  247. }
  248. @include breakpoint(tablet){
  249. float: none;
  250. margin: 0 0 15px;
  251. };
  252. }
  253. .content-container.modal-footer {
  254. bottom: 53px;
  255. }
  256. .shade {
  257. background: #000;
  258. bottom: 0;
  259. cursor: pointer;
  260. display: none;
  261. left: 0;
  262. opacity: 0.2;
  263. position: fixed;
  264. right: 0;
  265. top: 0;
  266. z-index: 11;
  267. }
  268. // ==========================================================================
  269. // Footer Navigation
  270. // ==========================================================================
  271. // NOTE: .download-jetpack is in _buttons.scss
  272. .footer {
  273. margin-top: em(20px);
  274. position: relative;
  275. padding: em(140px) 0 em(60px);
  276. text-align: center;
  277. &:before,
  278. &:after {
  279. content: '';
  280. position: absolute;
  281. left: 0;
  282. pointer-events: none;
  283. }
  284. &:before {
  285. top: 0;
  286. margin-top: -1px; // Removes subpixel gap on retina landscape
  287. width: 100%;
  288. height: 195px;
  289. }
  290. &:after {
  291. display: none;
  292. }
  293. .download-jetpack {
  294. margin-bottom: 33px;
  295. }
  296. @include minbreakpoint(large-desktop){
  297. padding-bottom: 35px;
  298. };
  299. @include breakpoint(large-desktop) {
  300. padding-top: 165px;
  301. padding-bottom: 0;
  302. &:before {
  303. background-size: 160% auto;
  304. }
  305. ul {
  306. float: none;
  307. overflow: hidden; // Clears the float
  308. }
  309. };
  310. @include breakpoint(desktop){
  311. padding-top: 146px;
  312. };
  313. @include breakpoint(tablet){
  314. margin-top: 0;
  315. };
  316. @include breakpoint(large-phone){
  317. margin-top: 0;
  318. padding-top: 135px;
  319. };
  320. @include breakpoint(phone){
  321. padding-top: 76px;
  322. };
  323. }
  324. .footer nav {
  325. max-width: 100%;
  326. a,
  327. a:visited {
  328. padding: 4px 6px;
  329. color: #999;
  330. &:hover,
  331. &:focus {
  332. color: #81A844;
  333. }
  334. }
  335. @include breakpoint(large-desktop){
  336. a,
  337. a:visited {
  338. &:hover,
  339. &:focus {
  340. color: $green;
  341. }
  342. }
  343. };
  344. @include breakpoint(large-phone){
  345. li {
  346. display: block;
  347. float: none;
  348. margin: 0;
  349. text-align: left;
  350. }
  351. a {
  352. display: block;
  353. padding: 0 16px;
  354. line-height: 44px;
  355. }
  356. };
  357. }
  358. .primary {
  359. padding: 25px 15px 10px 15px;
  360. border-bottom: 1px solid #eee;
  361. }
  362. .secondary-footer {
  363. margin: 0 auto;
  364. li {
  365. margin-right: 5px;
  366. }
  367. @include minbreakpoint(tablet){
  368. padding: 8px 15px 10px;
  369. margin-bottom: 30px;
  370. border-bottom: 1px solid #eee;
  371. };
  372. @include minbreakpoint(large-desktop){
  373. margin-bottom: 0;
  374. };
  375. @include breakpoint(tablet){
  376. padding: 8px 15px 8px;
  377. border-bottom: none;
  378. };
  379. @include breakpoint(large-phone){
  380. margin: 0;
  381. padding: 0;
  382. border: none;
  383. font-weight: 400;
  384. a {
  385. border-top: 1px solid #eee;
  386. }
  387. };
  388. }
  389. .footer .a8c-attribution {
  390. margin: 0;
  391. padding: 0 6px;
  392. color: #bbb;
  393. font-size: em(11px);
  394. font-family: $gill;
  395. text-transform: uppercase;
  396. a {
  397. // This may look janky, but if you highlight from
  398. // "AN" to "TEAM," copy and paste, you'll get the whole
  399. // "An AUTOMATTIC TEAM" phrase.
  400. display: inline-block;
  401. position: relative;
  402. padding: 4px 16px;
  403. right: 9999px;
  404. outline: 0;
  405. &:after {
  406. content: 'A';
  407. position: absolute;
  408. top: 2px;
  409. right: -9999px;
  410. height: 100%;
  411. color: #999;
  412. font-size: em(17px, 11px);
  413. font-family: $automatticons;
  414. text-align: center;
  415. }
  416. &:hover {
  417. &:after {
  418. animation: candy .4s ease-in-out;
  419. }
  420. }
  421. }
  422. }
  423. .secondary {
  424. @include minbreakpoint(tablet){
  425. padding: 0 15px 10px 15px;
  426. border-bottom: 1px solid #eee;
  427. }
  428. @include minbreakpoint(large-desktop){
  429. padding: 0 15px 10px 15px;
  430. border-bottom: none;
  431. }
  432. }
  433. // ==========================================================================
  434. // Messages & Errors
  435. // ==========================================================================
  436. .jetpack-message {
  437. background: lighten($green, 5%);
  438. border: 1px solid darken($green, 5%);
  439. margin: 33px auto 0;
  440. max-width: 90%;
  441. position: relative;
  442. z-index: 2;
  443. &.is-opt-in {
  444. margin: 50px 0 0;
  445. max-width: 100%;
  446. padding: 10px 15px;
  447. background: #fff;
  448. border: 0;
  449. box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
  450. font-size: 13px;
  451. text-align: center;
  452. // page=jetpack specific styling
  453. .subhead & {
  454. margin: 0;
  455. padding-bottom: 0;
  456. background: transparent;
  457. box-shadow: none;
  458. .jp-button {
  459. display: inline-block;
  460. }
  461. }
  462. p {
  463. color: #3c4549;
  464. }
  465. .jp-button {
  466. margin-top: 15px;
  467. display: none;
  468. }
  469. }
  470. .squeezer {
  471. h2 {
  472. font-size: 1em;
  473. }
  474. }
  475. h2 {
  476. color: #fff;
  477. margin: 0;
  478. }
  479. p {
  480. color: #fff;
  481. margin: 0;
  482. opacity: 0.7;
  483. }
  484. .squeezer {
  485. padding: 23px 23px 23px 80px;
  486. position: relative;
  487. text-align: left;
  488. &:before {
  489. color: #fff;
  490. content: '\f418';
  491. font-family: 'Genericons';
  492. font-size: 33px;
  493. height: 33px;
  494. left: 25px;
  495. opacity: 0.6;
  496. position: absolute;
  497. top: 23px;
  498. top: calc( 50% - 22px );
  499. }
  500. @include breakpoint(large-phone){
  501. padding: 23px;
  502. &:before {
  503. display: none;
  504. }
  505. }
  506. a {
  507. color:#FFF;
  508. border-bottom:1px solid #D5E4BD;
  509. } a:hover{
  510. border-bottom:1px solid #F1F6E9;
  511. }
  512. }
  513. &.error .squeezer:before,
  514. &.jetpack-err .squeezer:before {
  515. content: '\f414';
  516. }
  517. }
  518. .configure-module .jetpack-message {
  519. max-width:100%;
  520. }
  521. // ==========================================================================
  522. // Uncategorized
  523. // ==========================================================================
  524. @include breakpoint(large-phone){
  525. .wrap.inner.jp-support { // Used anywhere?
  526. .jp-support-column-left {
  527. width: 100%;
  528. .widget-text {
  529. margin-right: 0;
  530. width: 100%;
  531. }
  532. }
  533. .jp-support-column-right {
  534. width: 100%;
  535. }
  536. }
  537. };
  538. // ==========================================================================
  539. // Custom Breakpoints
  540. // ==========================================================================
  541. @media screen and (max-width: 515px) {
  542. .jp-frame {
  543. .header-nav {
  544. padding-bottom: 10px;
  545. li {
  546. line-height: 30px;
  547. }
  548. .jetpack-logo {
  549. width: 100%;
  550. text-align: center;
  551. }
  552. .jetpack-modules {
  553. margin: 0;
  554. width: 50%;
  555. text-align: right;
  556. padding: 0 5px;
  557. }
  558. .jetpack-modules + .jetpack-modules {
  559. text-align: left;
  560. }
  561. .jetpack-modules:nth-child(4) {
  562. text-align: center;
  563. margin: 0 auto;
  564. width: 100%;
  565. a {
  566. padding: 0 10px;
  567. }
  568. }
  569. }
  570. }
  571. } // max 515px
  572. // ==========================================================================
  573. // Fix notice in IE
  574. // ==========================================================================
  575. #ie-legacy-notice .dops-notice__content {
  576. display: inline-block;
  577. margin-left: 10px;
  578. }