You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

style_settings.css 5.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. {% if doc.at_import %}
  2. {{ doc.at_import }}
  3. {% endif %}
  4. body {
  5. {% if doc.background_image %}
  6. background: url("../{{ doc.background_image }}") repeat;
  7. {% elif doc.background_color %}
  8. background-color: #{{ doc.background_color }};
  9. background-image: none;
  10. {% else %}
  11. background-color: #ffffff;
  12. {% endif %}
  13. {% if doc.font or doc.google_web_font_for_text %}
  14. font-family: '{{ doc.google_web_font_for_text or doc.font }}', 'Helvetica Neue', Arial, Sans !important;
  15. {% endif %}
  16. {% if doc.font_size %}font-size: {{ doc.font_size }} !important;{% endif %}
  17. {% if doc.page_text %}color: #{{ doc.page_text }};{% endif %}
  18. }
  19. {% if doc.page_links %}a, a:hover {
  20. color: #{{ doc.page_links }};
  21. }{% endif %}
  22. {% if doc.font_size %}
  23. .small {
  24. font-size: {{ doc.small_font_size }} !important;
  25. }
  26. {% endif %}
  27. div.outer {
  28. background-color: #{{ doc.page_background }};
  29. }
  30. {% if doc.google_web_font_for_heading or doc.heading_font %}h1, h2, h3, h4, h5 {
  31. font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', 'Helvetica Neue', Arial !important;
  32. }{% endif %}
  33. {% if doc.heading_text_style %}h1, h2, h3, h4, h5 {
  34. text-transform: {{ doc.heading_text_style }};
  35. }{% endif %}
  36. {% if doc.page_headings %}h1, h2, h3, h4, h5 {
  37. color: #{{ doc.page_headings }};
  38. }{% endif %}
  39. {% if doc.page_border %}
  40. /* Page Border*/
  41. div.outer {
  42. box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  43. -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  44. -webkibox-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  45. }
  46. {% else %}
  47. {% if doc.background_color.lower() == doc.page_background.lower() %}
  48. .web-footer {
  49. border-top: 1px solid #{{ doc.page_background | get_hex_shade(15) }};
  50. padding-top: 10px;
  51. }
  52. {% endif %}
  53. {% endif %}
  54. .web-footer, .web-footer a {
  55. font-size: 90%;
  56. color: #{{ doc.background_color | get_hex_shade(70) }};
  57. }
  58. /* Bootstrap Navbar */
  59. .navbar-default {
  60. border: 0px;
  61. }
  62. .navbar {
  63. background-color: #{{ doc.top_bar_background}};
  64. background-repeat: repeat-x;
  65. background-image: none;
  66. border-bottom: 1px solid {% if doc.top_bar_background.lower() == doc.page_background.lower() -%}
  67. #{{ doc.page_background | get_hex_shade(15) }};
  68. {%- else -%}
  69. transparent;
  70. {%- endif %}
  71. }
  72. .navbar .navbar-brand,
  73. .navbar .navbar-brand:hover,
  74. .navbar .navbar-brand:focus,
  75. .navbar .nav > li > a {
  76. color: #{{ doc.top_bar_foreground }};
  77. text-shadow: none;
  78. }
  79. .navbar .nav > li > a:hover,
  80. .navbar .nav > li > a:focus {
  81. color: #{{ doc.top_bar_foreground }};
  82. background-color: transparent;
  83. }
  84. .navbar .navbar-text {
  85. color: #999999;
  86. }
  87. .navbar .nav .active > a,
  88. .navbar .nav .active > a:hover,
  89. .navbar .nav .active > a:focus {
  90. color: #{{ doc.top_bar_foreground }};
  91. background-color: transparent;
  92. }
  93. .navbar .navbar-link {
  94. color: #444444;
  95. }
  96. .navbar .navbar-link:hover,
  97. .navbar .navbar-link:focus {
  98. color: #{{ doc.top_bar_foreground}};
  99. }
  100. .navbar-fixed-top,
  101. .navbar-static-top {
  102. -webkit-box-shadow: none;
  103. -moz-box-shadow: none;
  104. box-shadow: none;
  105. }
  106. .navbar .nav > .active > a,
  107. .navbar .nav > .active > a:hover,
  108. .navbar .nav > .active > a:focus {
  109. color: #424242;
  110. text-decoration: none;
  111. background-color: transparent;
  112. -webkit-box-shadow: none;
  113. -moz-box-shadow: none;
  114. box-shadow: none;
  115. }
  116. .navbar .nav li.dropdown > .dropdown-toggle .caret,
  117. .navbar .nav li.dropdown > .dropdown-toggle:hover .caret {
  118. border-top-color: #{{ doc.top_bar_foreground}};
  119. border-bottom-color: #{{ doc.top_bar_foreground}};
  120. }
  121. .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
  122. .navbar .nav li.dropdown.open > .dropdown-toggle:hover .caret {
  123. border-top-color: #{{ doc.top_bar_background}};
  124. border-bottom-color: #{{ doc.top_bar_background}};
  125. }
  126. .navbar .nav li.dropdown.open > .dropdown-toggle {
  127. color: #{{ doc.top_bar_background}};
  128. background-color: #{{ doc.top_bar_foreground}};
  129. }
  130. @media (max-width: 800px) {
  131. .navbar .nav-collapse .nav > li > a,
  132. .navbar .nav-collapse .dropdown-menu a {
  133. background-color: #{{ doc.top_bar_background}};
  134. color: #{{ doc.top_bar_foreground}};
  135. }
  136. .navbar .nav-collapse .nav > li > a:hover,
  137. .navbar .nav-collapse .dropdown-menu a:hover {
  138. background-color: #{{ doc.top_bar_foreground}};
  139. color: #{{ doc.top_bar_background}};
  140. }
  141. .navbar .nav li.dropdown > .dropdown-toggle .caret {
  142. border-top-color: #{{ doc.top_bar_foreground }};
  143. border-bottom-color: #{{ doc.top_bar_foreground }};
  144. }
  145. .navbar .nav li.dropdown > .dropdown-toggle:hover .caret {
  146. border-top-color: #{{ doc.top_bar_foreground }};
  147. border-bottom-color: #{{ doc.top_bar_foreground }};
  148. }
  149. .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
  150. .navbar .nav li.dropdown.open > .dropdown-toggle:hover .caret {
  151. border-top-color: #{{ doc.top_bar_background }};
  152. border-bottom-color: #{{ doc.top_bar_background }};
  153. }
  154. }
  155. .navbar-default .navbar-toggle .icon-bar {
  156. background-color: #{{ doc.top_bar_foreground }};
  157. }
  158. .breadcrumb {
  159. background-color: #{{ doc.page_background | get_hex_shade(5) }};
  160. }
  161. .breadcrumb > li {
  162. text-shadow: none;
  163. }
  164. .table-striped tbody > tr:nth-child(odd) > td,
  165. .table-striped tbody > tr:nth-child(odd) > th {
  166. background-color: #{{ doc.page_background | get_hex_shade(5) }};
  167. }
  168. .table-hover tbody tr:hover td,
  169. .table-hover tbody tr:hover th {
  170. background-color: #{{ doc.page_background | get_hex_shade(10) }};
  171. }
  172. .table-bordered {
  173. border: 1px solid #{{ doc.page_background | get_hex_shade(15) }};
  174. }
  175. .table th,
  176. .table td {
  177. border-top: 1px solid #{{ doc.page_background | get_hex_shade(15) }};
  178. }
  179. .table-bordered th,
  180. .table-bordered td {
  181. border-left: 1px solid #{{ doc.page_background | get_hex_shade(15) }};
  182. }
  183. .hero-unit {
  184. background-color: #{{ doc.page_background | get_hex_shade(15) }};
  185. }
  186. pre, code {
  187. background-color: #{{ doc.page_background | get_hex_shade(5) }};
  188. }
  189. hr {
  190. border-top: 1px solid #{{ doc.page_background | get_hex_shade(15) }};
  191. border-bottom: 1px solid #{{ doc.page_background | get_hex_shade(5) }};
  192. }
  193. {% if doc.add_css -%}
  194. /* User CSS */
  195. {{ doc.add_css }}
  196. {%- endif %}