_layout.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. html {
  2. box-sizing: border-box;
  3. }
  4. *,
  5. *:before,
  6. *:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
  7. box-sizing: inherit;
  8. }
  9. body {
  10. background: $color__background-body; /* Fallback for when there is no custom background color defined. */
  11. }
  12. .site-content {
  13. padding: 1.6em 5%;
  14. }
  15. .no-sidebar {
  16. .site-main {
  17. margin: 0;
  18. }
  19. &:not(.page-template-full-width-page) .content-area {
  20. float: none;
  21. margin: 0 auto;
  22. max-width: 685px;
  23. }
  24. }
  25. .post-type-archive-jetpack-testimonial {
  26. .site-main {
  27. margin: 0;
  28. }
  29. }
  30. /*--------------------------------------------------------------
  31. ## Posts
  32. --------------------------------------------------------------*/
  33. @import "posts";
  34. /*--------------------------------------------------------------
  35. ## Pages
  36. --------------------------------------------------------------*/
  37. @import "pages";
  38. /*--------------------------------------------------------------
  39. ## Header
  40. --------------------------------------------------------------*/
  41. .site-header {
  42. text-align: center;
  43. }
  44. .top-bar-wrapper {
  45. padding: 0 5%;
  46. width: 100%;
  47. }
  48. .top-bar {
  49. color: white;
  50. background-color: $color__link;
  51. font-weight: bold;
  52. padding: .8em 0;
  53. text-transform: uppercase;
  54. width: 100%;
  55. @include font-size(.875);
  56. @include clearfix;
  57. .site-description {
  58. width: 100%;
  59. }
  60. a {
  61. color: white;
  62. }
  63. .jetpack-social-navigation {
  64. ul {
  65. margin-bottom: .75em;
  66. }
  67. li {
  68. padding: 0 0.4em;
  69. }
  70. a {
  71. &:hover,
  72. &:focus {
  73. opacity: 0.5;
  74. }
  75. &:before {
  76. font-size: 24px;
  77. vertical-align: middle;
  78. }
  79. }
  80. }
  81. }
  82. .no-top-bar .top-bar {
  83. padding: 0.4em 0;
  84. }
  85. .site-branding-wrapper {
  86. padding: 0 5%;
  87. width: 100%;
  88. }
  89. .site-branding {
  90. padding: 1.6em 0 0;
  91. }
  92. .custom-logo {
  93. -webkit-transform: translateZ(0);
  94. -moz-transform: translateZ(0);
  95. -ms-transform: translateZ(0);
  96. -o-transform: translateZ(0);
  97. transform: translateZ(0);
  98. -webkit-backface-visibility: hidden;
  99. -moz-backface-visibility: hidden;
  100. -ms-backface-visibility: hidden;
  101. backface-visibility: hidden;
  102. -webkit-perspective: 1000;
  103. -moz-perspective: 1000;
  104. -ms-perspective: 1000;
  105. perspective: 1000;
  106. max-width: 100%;
  107. max-height: 100px;
  108. width: auto;
  109. height: auto;
  110. transition: 0.2s;
  111. }
  112. .site-title {
  113. @include font-size(2);
  114. font-weight: bold;
  115. letter-spacing: 0;
  116. line-height: 1;
  117. margin: 0;
  118. text-transform: uppercase;
  119. color: $color__text-main;
  120. -webkit-font-smoothing: antialiased;
  121. a {
  122. color: $color__text-main;
  123. text-decoration: none;
  124. }
  125. }
  126. .site-header .size-karuna-hero,
  127. .custom-header {
  128. display: block;
  129. margin: 0 auto;
  130. width: 100%;
  131. height: auto;
  132. }
  133. /*--------------------------------------------------------------
  134. ## Footer
  135. --------------------------------------------------------------*/
  136. .site-footer {
  137. clear: both;
  138. background-color: $color__link;
  139. width: 100%;
  140. }
  141. .site-info {
  142. background-color: white;
  143. @include font-size(0.875);
  144. padding: 1.6em 5%;
  145. text-align: center;
  146. .sep {
  147. display: inline-block;
  148. margin: 0 .4em;
  149. }
  150. }