preview.css

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

File

core/themes/bartik/color/preview.css

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

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