preview.css

Same filename in this branch
  1. 7.x themes/garland/color/preview.css
Same filename in other branches
  1. 9 core/themes/bartik/color/preview.css
  2. 8.9.x core/themes/bartik/color/preview.css
/* ---------- Color form ----------- */
#color_scheme_form #palette .form-item {
  width: 25em;
}
#color_scheme_form #palette .form-item label {
  width: 15em;
}

/* ---------- Preview Styles ----------- */

html.js #preview {
  clear: both;
  float: none !important;
}
#preview {
  background-color: #fff;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  word-wrap: break-word;
  margin-bottom: 10px;
}
#preview-header {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
}
#preview-logo {
  float: left;
  padding: 15px 15px 15px 10px;
}
#preview-site-name {
  color: #686868;
  font-weight: normal;
  font-size: 1.821em;
  line-height: 1;
  margin-bottom: 30px;
  margin-left: 15px;
  padding-top: 34px;
}
#preview-main-menu {
  clear: both;
  padding: 0 15px 3px;
}
#preview-main-menu-links a {
  color: #d9d9d9;
  padding: 0.6em 1em 0.4em;
}
#preview-main-menu-links {
  font-size: 0.929em;
  margin: 0;
  padding: 0;
}
#preview-main-menu-links a {
  color: #333;
  background: #ccc;
  background: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px #eee;
  -khtml-border-radius-topleft: 8px;
  -moz-border-radius-topleft: 8px;
  -webkit-border-top-left-radius: 8px;
  border-top-left-radius: 8px;
  -khtml-border-radius-topright: 8px;
  -moz-border-radius-topright: 8px;
  -webkit-border-top-right-radius: 8px;
  border-top-right-radius: 8px;
}
#preview-main-menu-links a:hover,
#preview-main-menu-links a:focus {
  background: #fff;
  background: rgba(255, 255, 255, 0.95);
}
#preview-main-menu-links a:active {
  background: #b3b3b3;
  background: rgba(255, 255, 255, 1);
}
#preview-main-menu-links li a.active {
  border-bottom: none;
}
#preview-main-menu-links li {
  display: inline;
  list-style-type: none;
  padding: 0.6em 0 0.4em;
}
#preview-sidebar,
#preview-content {
  display: inline;
  float: left;
  position: relative;
}
#preview-sidebar {
  margin-left: 15px;
  width: 210px;
}
#preview-content {
  margin-left: 30px;
  width: 26.5em;
}
#preview-sidebar .preview-block {
  border: 1px solid;
  margin: 20px 0;
  padding: 15px 20px;
}
#preview-sidebar h2 {
  border-bottom: 1px solid #d6d6d6;
  font-size: 1.071em;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 0.5em;
  padding-bottom: 5px;
  text-shadow: 0 1px 0 #fff;
}
#preview .preview-block .preview-content {
  margin-top: 1em;
}
#preview .preview-block-menu .preview-content,
#preview .preview-block-menu .preview-content ul {
  margin-top: 0;
}
#preview-main {
  margin-bottom: 40px;
  margin-top: 20px;
}
#preview-page-title {
  font-size: 2em;
  font-weight: normal;
  line-height: 1;
  margin: 1em 0 0.5em;
}
#preview-footer-wrapper {
  color: #c0c0c0;
  color: rgba(255, 255, 255, 0.65);
  display: block !important;
  font-size: 0.857em;
  padding: 20px 20px 25px;
}
#preview-footer-wrapper a {
  color: #fcfcfc;
  color: rgba(255, 255, 255, 0.8);
}
#preview-footer-wrapper a:hover,
#preview-footer-wrapper a:focus {
  color: #fefefe;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}
#preview-footer-wrapper .preview-footer-column {
  display: inline;
  float: left;
  padding: 0 10px;
  position: relative;
  width: 220px;
}
#preview-footer-wrapper .preview-block {
  border: 1px solid #444;
  border-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
  padding: 10px;
}
#preview-footer-columns .preview-block-menu {
  border: none;
  margin: 0;
  padding: 0;
}
#preview-footer-columns h2 {
  border-bottom: 1px solid #555;
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 1em;
  margin-bottom: 0;
  padding-bottom: 3px;
  text-transform: uppercase;
}
#preview-footer-columns .preview-content {
  margin-top: 0;
}
#preview-footer-columns .preview-content ul {
  margin-left: 0;
  padding-left: 0;
}
#preview-footer-columns .preview-content li {
  list-style: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
}
#preview-footer-columns .preview-content li a {
  border-bottom: 1px solid #555;
  border-color: rgba(255, 255, 255, 0.15);
  display: block;
  line-height: 1.2;
  padding: 0.8em 2px 0.8em 20px;
  text-indent: -15px;
}
#preview-footer-columns .preview-content li a:hover,
#preview-footer-columns .preview-content li a:focus {
  background-color: #1f1f21;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

File

themes/bartik/color/preview.css

View source
  1. /* ---------- Color form ----------- */
  2. #color_scheme_form #palette .form-item {
  3. width: 25em;
  4. }
  5. #color_scheme_form #palette .form-item label {
  6. width: 15em;
  7. }
  8. /* ---------- Preview Styles ----------- */
  9. html.js #preview {
  10. clear: both;
  11. float: none !important;
  12. }
  13. #preview {
  14. background-color: #fff;
  15. font-family: Georgia, "Times New Roman", Times, serif;
  16. font-size: 14px;
  17. line-height: 1.5;
  18. overflow: hidden;
  19. word-wrap: break-word;
  20. margin-bottom: 10px;
  21. }
  22. #preview-header {
  23. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  24. position: relative;
  25. }
  26. #preview-logo {
  27. float: left;
  28. padding: 15px 15px 15px 10px;
  29. }
  30. #preview-site-name {
  31. color: #686868;
  32. font-weight: normal;
  33. font-size: 1.821em;
  34. line-height: 1;
  35. margin-bottom: 30px;
  36. margin-left: 15px;
  37. padding-top: 34px;
  38. }
  39. #preview-main-menu {
  40. clear: both;
  41. padding: 0 15px 3px;
  42. }
  43. #preview-main-menu-links a {
  44. color: #d9d9d9;
  45. padding: 0.6em 1em 0.4em;
  46. }
  47. #preview-main-menu-links {
  48. font-size: 0.929em;
  49. margin: 0;
  50. padding: 0;
  51. }
  52. #preview-main-menu-links a {
  53. color: #333;
  54. background: #ccc;
  55. background: rgba(255, 255, 255, 0.7);
  56. text-shadow: 0 1px #eee;
  57. -khtml-border-radius-topleft: 8px;
  58. -moz-border-radius-topleft: 8px;
  59. -webkit-border-top-left-radius: 8px;
  60. border-top-left-radius: 8px;
  61. -khtml-border-radius-topright: 8px;
  62. -moz-border-radius-topright: 8px;
  63. -webkit-border-top-right-radius: 8px;
  64. border-top-right-radius: 8px;
  65. }
  66. #preview-main-menu-links a:hover,
  67. #preview-main-menu-links a:focus {
  68. background: #fff;
  69. background: rgba(255, 255, 255, 0.95);
  70. }
  71. #preview-main-menu-links a:active {
  72. background: #b3b3b3;
  73. background: rgba(255, 255, 255, 1);
  74. }
  75. #preview-main-menu-links li a.active {
  76. border-bottom: none;
  77. }
  78. #preview-main-menu-links li {
  79. display: inline;
  80. list-style-type: none;
  81. padding: 0.6em 0 0.4em;
  82. }
  83. #preview-sidebar,
  84. #preview-content {
  85. display: inline;
  86. float: left;
  87. position: relative;
  88. }
  89. #preview-sidebar {
  90. margin-left: 15px;
  91. width: 210px;
  92. }
  93. #preview-content {
  94. margin-left: 30px;
  95. width: 26.5em;
  96. }
  97. #preview-sidebar .preview-block {
  98. border: 1px solid;
  99. margin: 20px 0;
  100. padding: 15px 20px;
  101. }
  102. #preview-sidebar h2 {
  103. border-bottom: 1px solid #d6d6d6;
  104. font-size: 1.071em;
  105. font-weight: normal;
  106. line-height: 1.2;
  107. margin: 0 0 0.5em;
  108. padding-bottom: 5px;
  109. text-shadow: 0 1px 0 #fff;
  110. }
  111. #preview .preview-block .preview-content {
  112. margin-top: 1em;
  113. }
  114. #preview .preview-block-menu .preview-content,
  115. #preview .preview-block-menu .preview-content ul {
  116. margin-top: 0;
  117. }
  118. #preview-main {
  119. margin-bottom: 40px;
  120. margin-top: 20px;
  121. }
  122. #preview-page-title {
  123. font-size: 2em;
  124. font-weight: normal;
  125. line-height: 1;
  126. margin: 1em 0 0.5em;
  127. }
  128. #preview-footer-wrapper {
  129. color: #c0c0c0;
  130. color: rgba(255, 255, 255, 0.65);
  131. display: block !important;
  132. font-size: 0.857em;
  133. padding: 20px 20px 25px;
  134. }
  135. #preview-footer-wrapper a {
  136. color: #fcfcfc;
  137. color: rgba(255, 255, 255, 0.8);
  138. }
  139. #preview-footer-wrapper a:hover,
  140. #preview-footer-wrapper a:focus {
  141. color: #fefefe;
  142. color: rgba(255, 255, 255, 0.95);
  143. text-decoration: underline;
  144. }
  145. #preview-footer-wrapper .preview-footer-column {
  146. display: inline;
  147. float: left;
  148. padding: 0 10px;
  149. position: relative;
  150. width: 220px;
  151. }
  152. #preview-footer-wrapper .preview-block {
  153. border: 1px solid #444;
  154. border-color: rgba(255, 255, 255, 0.1);
  155. margin: 20px 0;
  156. padding: 10px;
  157. }
  158. #preview-footer-columns .preview-block-menu {
  159. border: none;
  160. margin: 0;
  161. padding: 0;
  162. }
  163. #preview-footer-columns h2 {
  164. border-bottom: 1px solid #555;
  165. border-color: rgba(255, 255, 255, 0.15);
  166. font-size: 1em;
  167. margin-bottom: 0;
  168. padding-bottom: 3px;
  169. text-transform: uppercase;
  170. }
  171. #preview-footer-columns .preview-content {
  172. margin-top: 0;
  173. }
  174. #preview-footer-columns .preview-content ul {
  175. margin-left: 0;
  176. padding-left: 0;
  177. }
  178. #preview-footer-columns .preview-content li {
  179. list-style: none;
  180. list-style-image: none;
  181. margin: 0;
  182. padding: 0;
  183. }
  184. #preview-footer-columns .preview-content li a {
  185. border-bottom: 1px solid #555;
  186. border-color: rgba(255, 255, 255, 0.15);
  187. display: block;
  188. line-height: 1.2;
  189. padding: 0.8em 2px 0.8em 20px;
  190. text-indent: -15px;
  191. }
  192. #preview-footer-columns .preview-content li a:hover,
  193. #preview-footer-columns .preview-content li a:focus {
  194. background-color: #1f1f21;
  195. background-color: rgba(255, 255, 255, 0.05);
  196. text-decoration: none;
  197. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.