style.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098
  1. /*
  2. Theme Name: Affinity
  3. Theme URI: http://wordpress.com/themes/affinity/
  4. Author: Automattic
  5. Author URI: http://wordpress.com/themes/
  6. Description: Affinity is a classic one-page theme designed with weddings and family announcements in mind.
  7. Version: 1.1.4-wpcom
  8. License: GNU General Public License v2 or later
  9. License URI: http://www.gnu.org/licenses/gpl-2.0.html
  10. Text Domain: affinity
  11. Tags: blog, wedding, contemporary, elegant, modern, sophisticated, brown, dark, custom-background, custom-colors, custom-header, featured-image-header, featured-images, flexible-header, full-width-template, infinite-scroll, rtl-language-support, site-logo, theme-options, threaded-comments, translation-ready, responsive-layout, one-column, two-columns, right-sidebar
  12. This theme, like WordPress, is licensed under the GPL.
  13. Use it to make something cool, have fun, and share what you've learned with others.
  14. Affinity is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
  15. Underscores is distributed under the terms of the GNU GPL v2 or later.
  16. Normalizing styles have been helped along thanks to the fine work of
  17. Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
  18. */
  19. /*--------------------------------------------------------------
  20. >>> TABLE OF CONTENTS:
  21. ----------------------------------------------------------------
  22. # Normalize
  23. # Accessibility
  24. # Alignments
  25. # Clearings
  26. # Typography
  27. # Forms
  28. # Buttons
  29. # Formatting
  30. # Lists
  31. # Tables
  32. # Navigation
  33. # Links
  34. # Layout
  35. ## Posts
  36. ## Pages
  37. # Comments
  38. # Widgets
  39. # Infinite scroll
  40. # Media
  41. ## Galleries
  42. --------------------------------------------------------------*/
  43. @import "variables/variables-base";
  44. @import "mixins/mixins-base";
  45. /*--------------------------------------------------------------
  46. # Normalize
  47. --------------------------------------------------------------*/
  48. @import "shared/normalize";
  49. /*--------------------------------------------------------------
  50. # Accessibility
  51. --------------------------------------------------------------*/
  52. @import "shared/accessibility";
  53. /*--------------------------------------------------------------
  54. # Alignments
  55. --------------------------------------------------------------*/
  56. @import "shared/alignments";
  57. /*--------------------------------------------------------------
  58. # Clearings
  59. --------------------------------------------------------------*/
  60. @import "shared/clearings";
  61. /*--------------------------------------------------------------
  62. # Typography
  63. --------------------------------------------------------------*/
  64. @import "shared/typography";
  65. /*--------------------------------------------------------------
  66. # Forms
  67. --------------------------------------------------------------*/
  68. @import "shared/forms";
  69. /*--------------------------------------------------------------
  70. # Forms
  71. --------------------------------------------------------------*/
  72. @import "shared/buttons";
  73. /*--------------------------------------------------------------
  74. # Formattings
  75. --------------------------------------------------------------*/
  76. @import "shared/formatting";
  77. /*--------------------------------------------------------------
  78. # Lists
  79. --------------------------------------------------------------*/
  80. @import "shared/lists";
  81. /*--------------------------------------------------------------
  82. # Tables
  83. --------------------------------------------------------------*/
  84. @import "shared/tables";
  85. /*--------------------------------------------------------------
  86. # Links
  87. --------------------------------------------------------------*/
  88. @import "shared/links";
  89. /*--------------------------------------------------------------
  90. # Links
  91. --------------------------------------------------------------*/
  92. @import "shared/links";
  93. /*--------------------------------------------------------------
  94. # Layout
  95. --------------------------------------------------------------*/
  96. @import "layout/layout";
  97. /*--------------------------------------------------------------
  98. # Navigation
  99. --------------------------------------------------------------*/
  100. @import "shared/navigation";
  101. /*--------------------------------------------------------------
  102. # Comments
  103. --------------------------------------------------------------*/
  104. @import "sections/comments";
  105. /*--------------------------------------------------------------
  106. # Widgets
  107. --------------------------------------------------------------*/
  108. @import "sections/widgets";
  109. /*--------------------------------------------------------------
  110. # Infinite scroll
  111. --------------------------------------------------------------*/
  112. @import "shared/infinitescroll";
  113. /*--------------------------------------------------------------
  114. # Media
  115. --------------------------------------------------------------*/
  116. @import "shared/media";
  117. /*--------------------------------------------------------------
  118. # Customizer
  119. --------------------------------------------------------------*/
  120. /* Hide this until we're in the Customizer */
  121. .affinity-panel-title {
  122. display: none;
  123. }
  124. .affinity-customizer.affinity-front-page .affinity-panel {
  125. /* Colour-code all panels (add 1 to account for #affinity-hero, so 2 is actually panel 1)*/
  126. }
  127. .affinity-customizer.affinity-front-page .affinity-panel::after {
  128. border: 2px dashed;
  129. bottom: 1.6em;
  130. content: "";
  131. display: block;
  132. left: 1.6em;
  133. position: absolute;
  134. right: 1.6em;
  135. top: 1.6em;
  136. }
  137. .affinity-customizer.affinity-front-page .affinity-panel .affinity-panel-title {
  138. color: #fff;
  139. display: inline-block;
  140. font-family: $font__headings;
  141. @include font-size(0.875);
  142. letter-spacing: 1px;
  143. padding: 5px 10px;
  144. position: absolute;
  145. top: 3.2em;
  146. right: 3.2em;
  147. text-transform: uppercase;
  148. transform: translate(3px, -3px);
  149. font-weight: bold;
  150. }
  151. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(1)::after {
  152. display: none;
  153. }
  154. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(2) .affinity-panel-title {
  155. background: #a64b55;
  156. }
  157. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(2)::after {
  158. border-color: #a64b55;
  159. color: #a64b55;
  160. }
  161. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(3) .affinity-panel-title {
  162. background: #b569a2;
  163. }
  164. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(3)::after {
  165. border-color: #b569a2;
  166. color: #b569a2;
  167. }
  168. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(4) .affinity-panel-title {
  169. background: #8f68bd;
  170. }
  171. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(4)::after {
  172. border-color: #8f68bd;
  173. color: #8f68bd;
  174. }
  175. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(5) .affinity-panel-title {
  176. background: #575ebd;
  177. }
  178. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(5)::after {
  179. border-color: #575ebd;
  180. color: #575ebd;
  181. }
  182. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(6) .affinity-panel-title {
  183. background: #55a1bd;
  184. }
  185. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(6)::after {
  186. border-color: #55a1bd;
  187. color: #55a1bd;
  188. }
  189. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(7) .affinity-panel-title {
  190. background: #7dbd8f;
  191. }
  192. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(7)::after {
  193. border-color: #7dbd8f;
  194. color: #7dbd8f;
  195. }
  196. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(8) .affinity-panel-title {
  197. background: #c8b247;
  198. }
  199. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(8)::after {
  200. border-color: #c8b247;
  201. color: #c8b247;
  202. }
  203. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(9) .affinity-panel-title {
  204. background: #bd7555;
  205. }
  206. .affinity-customizer.affinity-front-page .affinity-panel:nth-of-type(9)::after {
  207. border-color: #bd7555;
  208. color: #bd7555;
  209. }
  210. /* Add a highlight class to improve Customizer behaviour */
  211. @-webkit-keyframes flash {
  212. 0%,
  213. 20%,
  214. 40%,
  215. 60%,
  216. 80%,
  217. 100% {
  218. opacity: 1;
  219. }
  220. 10%,
  221. 30%,
  222. 50%,
  223. 70%,
  224. 90% {
  225. opacity: 0;
  226. }
  227. }
  228. @keyframes flash {
  229. 0%,
  230. 20%,
  231. 40%,
  232. 60%,
  233. 80%,
  234. 100% {
  235. opacity: 1;
  236. }
  237. 10%,
  238. 30%,
  239. 50%,
  240. 70%,
  241. 90% {
  242. opacity: 0;
  243. }
  244. }
  245. .affinity-highlight::after {
  246. -webkit-animation-duration: 2s;
  247. animation-duration: 2s;
  248. -webkit-animation-name: flash;
  249. animation-name: flash;
  250. -webkit-animation-timing-function: ease-in-out;
  251. animation-timing-function: ease-in-out;
  252. -webkit-animation-fill-mode: both;
  253. animation-fill-mode: both;
  254. }
  255. /*--------------------------------------------------------------
  256. # Media Queries
  257. --------------------------------------------------------------*/
  258. @media screen and (min-width: 46em) {
  259. body {
  260. position: relative;
  261. }
  262. .site-footer .sep {
  263. clear: none;
  264. display: inline;
  265. width: auto;
  266. height: auto;
  267. visibility: visible;
  268. margin: 0 0.4em;
  269. }
  270. .panel-navigation {
  271. display: block;
  272. }
  273. .site-header {
  274. margin-bottom: 3.2em;
  275. overflow: hidden;
  276. }
  277. .site-header .entry-title {
  278. display: block;
  279. }
  280. .affinity-front-page {
  281. .entry-title {
  282. margin: 0;
  283. }
  284. .custom-header .entry-title {
  285. color: $color__border-button;
  286. position: absolute;
  287. top: 50%;
  288. left: 50%;
  289. transform: translate(-50%, -50%);
  290. z-index: 1;
  291. }
  292. .hentry .entry-content {
  293. margin-top: 3.2em;
  294. margin-bottom: 3.2em;
  295. }
  296. .edit-link a,
  297. .edit-link a:visited {
  298. border: 3px solid rgba($color__border-button, 0.5);
  299. color: rgba($color__border-button, 0.5);
  300. display: inline-block;
  301. @include font-size(0.8);
  302. font-family: $font__headings;
  303. text-transform: uppercase;
  304. letter-spacing: 1px;
  305. font-weight: bold;
  306. text-decoration: none;
  307. padding: 3px 6px;
  308. position: absolute;
  309. top: 1.6em;
  310. left: 1.6em;
  311. z-index: 2;
  312. transition: 0.3s;
  313. &:hover {
  314. border-color: $color__border-button;
  315. color: $color__border-button;
  316. }
  317. }
  318. .hentry:first-of-type .edit-link a,
  319. .hentry:first-of-type .edit-link a:visited {
  320. color: inherit;
  321. border: 0;
  322. padding: 0;
  323. position: static;
  324. top: auto;
  325. left: auto;
  326. display: inline-block;
  327. text-transform: none;
  328. letter-spacing: 0;
  329. @include font-size(1);
  330. font-family: $font__main;
  331. font-weight: normal;
  332. margin-bottom: 3.2em;
  333. }
  334. .custom-header.in-panel {
  335. background-color: $color__text-main;
  336. min-height: 200px;
  337. }
  338. .no-featured-image {
  339. .custom-header.in-panel {
  340. border-top: 1px solid $color__border-button;
  341. background-color: transparent;
  342. min-height: auto;
  343. padding-top: 3.2em;
  344. }
  345. .entry-title {
  346. color: $color__text-screen;
  347. position: relative;
  348. top: auto;
  349. left: auto;
  350. transform: none;
  351. }
  352. .edit-link {
  353. max-width: 716px;
  354. }
  355. .edit-link a,
  356. .edit-link a:visited {
  357. color: inherit;
  358. border: 0;
  359. padding: 0;
  360. position: static;
  361. top: auto;
  362. left: auto;
  363. display: inline-block;
  364. text-transform: none;
  365. letter-spacing: 0;
  366. @include font-size(1);
  367. font-family: $font__main;
  368. font-weight: normal;
  369. margin-bottom: 3.2em;
  370. }
  371. .hentry:first-of-type .edit-link {
  372. width: 100%;
  373. }
  374. }
  375. }
  376. h1 {
  377. @include font-size(2.945);
  378. }
  379. h2 {
  380. @include font-size(2.625);
  381. }
  382. h3 {
  383. @include font-size(1.825);
  384. }
  385. h4 {
  386. @include font-size(1.625);
  387. }
  388. h5 {
  389. @include font-size(1.125);
  390. }
  391. h6 {
  392. @include font-size(1);
  393. }
  394. .entry-title {
  395. line-height: 1.2;
  396. @include font-size(2.945);
  397. text-align: left;
  398. }
  399. .site-description {
  400. @include font-size(2);
  401. line-height: 1.4;
  402. color: $color__border-button;
  403. border-bottom: 0;
  404. padding-bottom: 0;
  405. margin-bottom: 0;
  406. a {
  407. color: $color__border-button;
  408. &:hover {
  409. color: $color__border-button;
  410. }
  411. }
  412. }
  413. .page-title {
  414. @include font-size(1.825);
  415. }
  416. .entry-summary {
  417. @include font-size(1.625);
  418. }
  419. .menu-toggle {
  420. display: none;
  421. }
  422. .header-wrapper {
  423. min-height: 0;
  424. position: absolute;
  425. top: 0;
  426. left: 0;
  427. z-index: 1;
  428. padding-left: 1.6em;
  429. padding-right: 1.6em;
  430. }
  431. .no-custom-header .custom-header {
  432. display: block;
  433. }
  434. .no-custom-header .header-wrapper {
  435. padding-bottom: 0.8em;
  436. }
  437. .no-custom-header .site-title,
  438. .site-title {
  439. text-align: left;
  440. transform: translateY(0);
  441. position: relative;
  442. top: auto;
  443. left: auto;
  444. }
  445. .site-description-wrapper {
  446. position: absolute;
  447. top: 50%;
  448. left: 50%;
  449. transform: translate(-50%, -50%);
  450. z-index: 2;
  451. width: $size_site-main;
  452. }
  453. .site-branding {
  454. max-width: 50%;
  455. float: left;
  456. }
  457. .main-navigation {
  458. float: right;
  459. max-width: 50%;
  460. text-align: right;
  461. a,
  462. a:visited {
  463. margin-top: 0 !important;
  464. margin-bottom: 1.3em;
  465. padding-top: 0 !important;
  466. border-top: 0 !important;
  467. color: $color__border-button;
  468. }
  469. .current_page_item > a,
  470. .current-menu-item > a,
  471. .current_page_ancestor > a,
  472. .current-menu-ancestor > a {
  473. color: rgba($color__border-button, 0.5);
  474. }
  475. &.toggled > div {
  476. clear: none;
  477. background-color: transparent;
  478. margin-left: auto;
  479. margin-right: auto;
  480. margin-bottom: auto;
  481. padding-top: 0;
  482. padding-bottom: 0;
  483. & > ul > li {
  484. padding-left: 0;
  485. padding-right: 0;
  486. }
  487. }
  488. ul {
  489. display: block;
  490. list-style: none;
  491. margin: 0 0 -1.3em;
  492. padding: 0;
  493. ul {
  494. background-color: white;
  495. box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1);
  496. border: 6px solid white;
  497. float: left;
  498. font-family: $font__main;
  499. font-weight: normal;
  500. font-style: italic;
  501. text-transform: none;
  502. letter-spacing: 0;
  503. position: absolute;
  504. top: 2.55em;
  505. left: -9999em;
  506. z-index: 99999;
  507. a {
  508. padding: 0.8em !important;
  509. padding-left: inherit;
  510. }
  511. &::before {
  512. content: "";
  513. width: 0;
  514. height: 0;
  515. border-bottom: 14px solid white;
  516. border-top: 0 solid transparent;
  517. border-left: 14px solid transparent;
  518. border-right: 14px solid transparent;
  519. position: absolute;
  520. left: 50%;
  521. transform: translateX(-50%);
  522. top: -20px;
  523. }
  524. &::after {
  525. border: 3px solid $color__border-button;
  526. content: "";
  527. display: block;
  528. width: 100%;
  529. height: 100%;
  530. position: absolute;
  531. top: 0;
  532. left: 0;
  533. z-index: -1;
  534. }
  535. ul {
  536. left: -999em;
  537. top: -6px;
  538. a {
  539. padding-left: inherit;
  540. }
  541. &::before {
  542. display: none;
  543. }
  544. }
  545. li {
  546. margin-left: 0;
  547. text-align: center;
  548. &:hover > ul,
  549. &.focus > ul {
  550. left: 100%;
  551. }
  552. a::after {
  553. display: none;
  554. }
  555. &:hover > a,
  556. &.focus > a {
  557. color: $color__link;
  558. &:visited {
  559. color: $color__link;
  560. }
  561. }
  562. &:first-of-type a {
  563. margin-top: 0;
  564. padding-top: 0;
  565. border-top: 0;
  566. }
  567. }
  568. li:hover > ul,
  569. li.focus > ul {
  570. transform: translateX(0);
  571. left: 100%;
  572. }
  573. a,
  574. a:visited {
  575. border-bottom: 1px solid $color__border-button;
  576. color: $color__text-screen;
  577. padding: 0.8em;
  578. margin: 0;
  579. width: 180px;
  580. }
  581. :hover > a,
  582. .focus > a {
  583. color: $color__link;
  584. }
  585. a:hover,
  586. a.focus {
  587. color: $color__link;
  588. }
  589. }
  590. li:hover > ul,
  591. li.focus > ul {
  592. left: 50%;
  593. transform: translateX(-0.75em) translateX(-50%);
  594. }
  595. }
  596. li {
  597. display: inline-block;
  598. margin-left: 0.8em;
  599. position: relative;
  600. &:hover > a,
  601. &.focus > a {
  602. color: rgba($color__border-button, 0.5);
  603. &:visited {
  604. color: rgba($color__border-button, 0.5);
  605. }
  606. }
  607. a::after {
  608. content: "\2666";
  609. color: rgba($color__border-button, 0.25);
  610. display: inline-block;
  611. font-family: Arial, Helvetica, sans-serif;
  612. margin-left: 1em;
  613. }
  614. &:last-of-type a::after {
  615. display: none;
  616. }
  617. }
  618. li.menu-item-has-children > a,
  619. li.page_item_has_children > a {
  620. position: relative;
  621. padding-right: 1.6em;
  622. &::before {
  623. content: "\f431";
  624. font-family: Genericons;
  625. font-size: 14px;
  626. line-height: 1;
  627. display: inline-block;
  628. position: absolute;
  629. right: 1.4em;
  630. top: 3px;
  631. vertical-align: text-top;
  632. -webkit-font-smoothing: antialiased;
  633. }
  634. &::after {
  635. position: relative;
  636. left: 1.6em;
  637. }
  638. }
  639. li.menu-item-has-children:last-of-type > a::before,
  640. li.page_item_has_children:last-of-type > a::before {
  641. right: -0.1em;
  642. }
  643. ul ul li.menu-item-has-children > a,
  644. ul ul li.page_item_has_children > a {
  645. &::before {
  646. display: none;
  647. }
  648. &::after {
  649. content: "\f431";
  650. color: $color__link;
  651. font-family: Genericons;
  652. font-size: 14px;
  653. font-style: normal;
  654. font-weight: normal;
  655. margin: 0 0 0 0.4em;
  656. padding: 0;
  657. line-height: 1;
  658. display: inline-block;
  659. vertical-align: text-top;
  660. transform: rotate(-90deg);
  661. -webkit-font-smoothing: antialiased;
  662. }
  663. }
  664. }
  665. .header-wrapper {
  666. position: fixed;
  667. top: 0;
  668. left: 0;
  669. z-index: 9999;
  670. transition: 0.3s;
  671. }
  672. .admin-bar .header-wrapper {
  673. top: 32px;
  674. }
  675. .header-wrapper.without-transparency {
  676. background-color: $color__text-main;
  677. box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  678. }
  679. .affinity-customizer .header-wrapper {
  680. z-index: 5;
  681. }
  682. }
  683. @media screen and (max-width: 782px) {
  684. .admin-bar .header-wrapper {
  685. top: 46px;
  686. }
  687. }
  688. @media screen and ( min-width: 58em ) {
  689. .site-description {
  690. @include font-size(2.945);
  691. }
  692. .site-description-wrapper {
  693. margin: 0 auto;
  694. width: $size_site-content;
  695. }
  696. .content-area {
  697. float: left;
  698. margin: 0 (-$size_site-sidebar) 0 0;
  699. }
  700. .page-template-guestbook .content-area,
  701. .page-template-fullwidth-page-php .content-area,
  702. .no-sidebar .content-area {
  703. float: none;
  704. margin: 0 auto;
  705. }
  706. .site-main {
  707. margin: 0 30% 0 0;
  708. }
  709. .page-template-guestbook .site-main,
  710. .page-template-fullwidth-page-php .site-main,
  711. .no-sidebar .site-main,
  712. .affinity-front-page .site-main {
  713. margin: 0 auto;
  714. }
  715. .page-template-guestbook .site-main,
  716. .no-sidebar .site-main {
  717. max-width: 716px;
  718. }
  719. .affinity-front-page .site-content {
  720. max-width: 100%;
  721. .entry-header,
  722. .entry-content,
  723. .entry-footer {
  724. margin-left: auto;
  725. margin-right: auto;
  726. max-width: 716px;
  727. width: 90%;
  728. }
  729. }
  730. .affinity-front-page.no-sidebar .site-main {
  731. width: 100%;
  732. max-width: 100%;
  733. }
  734. .affinity-front-page .contact-form {
  735. max-width: 80%;
  736. }
  737. .site-content .widget-area {
  738. float: right;
  739. overflow: hidden;
  740. width: $size_site-sidebar;
  741. }
  742. .site-footer {
  743. clear: both;
  744. }
  745. .comment-author .avatar {
  746. clear: both;
  747. display: block;
  748. float: none;
  749. margin-bottom: 0.8em;
  750. margin-right: 0;
  751. }
  752. .comment-content {
  753. clear: none;
  754. }
  755. .comment-meta .edit-link::before {
  756. display: none;
  757. }
  758. .jetpack-social-navigation ul {
  759. display: block;
  760. margin: 0 auto !important;
  761. width: $size_site-content;
  762. }
  763. .entry-meta,
  764. .comment-meta {
  765. border-right: 1px solid $color__border-button;
  766. padding-right: 0.8em;
  767. float: left;
  768. width: 21%;
  769. }
  770. .entry-content,
  771. .search-results .entry-summary,
  772. .entry-footer,
  773. .comment-content,
  774. .reply {
  775. width: 75%;
  776. float: right;
  777. }
  778. .page-template-guestbook {
  779. .comment-content,
  780. .comment-meta {
  781. width: 100%;
  782. float: none;
  783. padding: 0;
  784. border: 0;
  785. }
  786. .comments-area .comment {
  787. width: calc(50% - 15px);
  788. }
  789. }
  790. .page,
  791. .jetpack-portfolio {
  792. .entry-content,
  793. .entry-summary,
  794. .entry-footer {
  795. width: 100%;
  796. float: none;
  797. }
  798. }
  799. .comment-navigation,
  800. .posts-navigation,
  801. .post-navigation {
  802. .nav-previous {
  803. float: left;
  804. width: 50%;
  805. padding: 0;
  806. margin: 0;
  807. border: 0;
  808. }
  809. .nav-next {
  810. float: right;
  811. text-align: right;
  812. width: 50%;
  813. }
  814. }
  815. .footer-widgets .widget-areas {
  816. margin: 0 auto;
  817. width: $size_site-content;
  818. }
  819. .footer-widgets .widget-areas .widget-area:nth-child(1):nth-last-child(2),
  820. .footer-widgets .widget-areas .widget-area:nth-child(2):nth-last-child(1) {
  821. width: 47%;
  822. margin-right: 6%;
  823. &:last-of-type {
  824. margin-right: 0;
  825. }
  826. }
  827. .footer-widgets .widget-areas .widget-area:nth-child(1):nth-last-child(3),
  828. .footer-widgets .widget-areas .widget-area:nth-child(2):nth-last-child(2),
  829. .footer-widgets .widget-areas .widget-area:nth-child(3):nth-last-child(1) {
  830. width: 20%;
  831. margin-right: 5%;
  832. &:last-of-type {
  833. margin-right: 0;
  834. }
  835. }
  836. .footer-widgets .widget-areas .widget-area:nth-child(1):nth-last-child(3) {
  837. width: 50%;
  838. }
  839. }
  840. @media screen and ( min-width: 68em ) {
  841. .page-template-guestbook .site-main,
  842. .no-sidebar .site-main {
  843. width: $size_site-content;
  844. }
  845. .site-content {
  846. max-width: 1068px;
  847. width: $size_site-content;
  848. }
  849. blockquote {
  850. @include font-size(1.625);
  851. &.alignright,
  852. &.alignleft {
  853. max-width: 12em;
  854. }
  855. &.alignleft.below-entry-meta {
  856. margin-left: -7.2em;
  857. }
  858. &.alignright.below-sidebar {
  859. margin-right: -7.2em;
  860. }
  861. }
  862. img {
  863. &.alignleft.below-entry-meta {
  864. margin-left: -7.2em;
  865. }
  866. &.alignright.below-sidebar {
  867. margin-right: -7.2em;
  868. }
  869. }
  870. .wp-caption.alignleft.below-entry-meta,
  871. .wp-caption.alignright.below-sidebar {
  872. position: relative;
  873. .wp-caption-text {
  874. border-top: 3px solid $color__border-button;
  875. margin: 0;
  876. padding-top: 0.8em;
  877. position: absolute;
  878. top: 0;
  879. width: 158px;
  880. }
  881. }
  882. .wp-caption.alignleft.below-entry-meta {
  883. .wp-caption-text {
  884. transform: translateX(-100%) translateX(-1.6em);
  885. text-align: right;
  886. }
  887. }
  888. .wp-caption.alignright.below-sidebar {
  889. .wp-caption-text {
  890. right: 0;
  891. transform: translateX(100%) translateX(1.6em);
  892. text-align: left;
  893. }
  894. }
  895. }