overrides.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. @if $bulmaswatch-import-font {
  2. @import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic);
  3. }
  4. hr {
  5. height: $border-width;
  6. }
  7. h6 {
  8. text-transform: uppercase;
  9. letter-spacing: 0.5px;
  10. }
  11. .hero {
  12. background-color: $grey-dark;
  13. }
  14. a {
  15. transition: all 200ms ease;
  16. }
  17. .button {
  18. transition: all 200ms ease;
  19. border-width: $border-width;
  20. color: $white;
  21. &.is-active,
  22. &.is-focused,
  23. &:active,
  24. &:focus {
  25. box-shadow: 0 0 0 2px rgba($button-focus-border-color, 0.5);
  26. }
  27. @each $name, $pair in $colors {
  28. $color: nth($pair, 1);
  29. $color-invert: nth($pair, 2);
  30. &.is-#{$name} {
  31. &.is-hovered,
  32. &:hover {
  33. background-color: lighten($color, 7.5%);
  34. }
  35. &.is-active,
  36. &.is-focused,
  37. &:active,
  38. &:focus {
  39. border-color: $color;
  40. box-shadow: 0 0 0 2px rgba($color, 0.5);
  41. }
  42. }
  43. }
  44. }
  45. .label {
  46. color: $grey-lighter;
  47. }
  48. .button,
  49. .control.has-icons-left .icon,
  50. .control.has-icons-right .icon,
  51. .input,
  52. .pagination-ellipsis,
  53. .pagination-link,
  54. .pagination-next,
  55. .pagination-previous,
  56. .select,
  57. .select select,
  58. .textarea {
  59. height: 2.5em;
  60. }
  61. .input,
  62. .textarea {
  63. transition: all 200ms ease;
  64. box-shadow: none;
  65. border-width: $border-width;
  66. padding-left: 1em;
  67. padding-right: 1em;
  68. }
  69. .select {
  70. &:after,
  71. select {
  72. border-width: $border-width;
  73. }
  74. }
  75. .control {
  76. &.has-addons {
  77. .button,
  78. .input,
  79. .select {
  80. margin-right: -$border-width;
  81. }
  82. }
  83. }
  84. .notification {
  85. background-color: $grey-dark;
  86. }
  87. .card {
  88. $card-border-color: lighten($grey-darker, 5);
  89. box-shadow: none;
  90. border: $border-width solid $card-border-color;
  91. background-color: $grey-darker;
  92. border-radius: $radius;
  93. .card-image {
  94. img {
  95. border-radius: $radius $radius 0 0;
  96. }
  97. }
  98. .card-header {
  99. box-shadow: none;
  100. background-color: rgba($black-bis, 0.2);
  101. border-radius: $radius $radius 0 0;
  102. }
  103. .card-footer {
  104. background-color: rgba($black-bis, 0.2);
  105. }
  106. .card-footer,
  107. .card-footer-item {
  108. border-width: $border-width;
  109. border-color: $card-border-color;
  110. }
  111. }
  112. .notification {
  113. @each $name, $pair in $colors {
  114. $color: nth($pair, 1);
  115. $color-invert: nth($pair, 2);
  116. &.is-#{$name} {
  117. a:not(.button) {
  118. color: $color-invert;
  119. text-decoration: underline;
  120. }
  121. }
  122. }
  123. }
  124. .tag {
  125. border-radius: $radius;
  126. }
  127. .menu-list {
  128. a {
  129. transition: all 300ms ease;
  130. }
  131. }
  132. .modal-card-body {
  133. background-color: $grey-darker;
  134. }
  135. .modal-card-foot,
  136. .modal-card-head {
  137. border-color: $grey-dark;
  138. }
  139. .message-header {
  140. font-weight: $weight-bold;
  141. background-color: $grey-dark;
  142. color: $white;
  143. }
  144. .message-body {
  145. border-width: $border-width;
  146. border-color: $grey-dark;
  147. }
  148. .navbar {
  149. border-radius: $radius;
  150. &.is-transparent {
  151. background: none;
  152. }
  153. &.is-primary {
  154. .navbar-dropdown {
  155. a.navbar-item.is-active {
  156. background-color: $link;
  157. }
  158. }
  159. }
  160. @include touch {
  161. .navbar-menu {
  162. background-color: $navbar-background-color;
  163. border-radius: 0 0 $radius $radius;
  164. }
  165. }
  166. }
  167. .hero .navbar,
  168. body > .navbar {
  169. border-radius: 0;
  170. }
  171. .pagination-link,
  172. .pagination-next,
  173. .pagination-previous {
  174. border-width: $border-width;
  175. }
  176. .panel-block,
  177. .panel-heading,
  178. .panel-tabs {
  179. border-width: $border-width;
  180. &:first-child {
  181. border-top-width: $border-width;
  182. }
  183. }
  184. .panel-heading {
  185. font-weight: $weight-bold;
  186. }
  187. .panel-tabs {
  188. a {
  189. border-width: $border-width;
  190. margin-bottom: -$border-width;
  191. &.is-active {
  192. border-bottom-color: $link-active;
  193. }
  194. }
  195. }
  196. .panel-block {
  197. &:hover {
  198. color: $link-hover;
  199. .panel-icon {
  200. color: $link-hover;
  201. }
  202. }
  203. &.is-active {
  204. .panel-icon {
  205. color: $link-active;
  206. }
  207. }
  208. }
  209. .tabs {
  210. a {
  211. border-bottom-width: $border-width;
  212. margin-bottom: -$border-width;
  213. }
  214. ul {
  215. border-bottom-width: $border-width;
  216. }
  217. &.is-boxed {
  218. a {
  219. border-width: $border-width;
  220. }
  221. li.is-active a {
  222. background-color: darken($grey-darker, 4);
  223. }
  224. }
  225. &.is-toggle {
  226. li a {
  227. border-width: $border-width;
  228. margin-bottom: 0;
  229. }
  230. li + li {
  231. margin-left: -$border-width;
  232. }
  233. }
  234. }
  235. .hero {
  236. // Colors
  237. @each $name, $pair in $colors {
  238. $color: nth($pair, 1);
  239. $color-invert: nth($pair, 2);
  240. &.is-#{$name} {
  241. .navbar {
  242. .navbar-dropdown {
  243. .navbar-item:hover {
  244. background-color: $navbar-dropdown-item-hover-background-color;
  245. }
  246. }
  247. }
  248. }
  249. }
  250. }