bootswatch.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. // Cerulean 2.2.2
  2. // Bootswatch
  3. // -----------------------------------------------------
  4. // TYPOGRAPHY
  5. // -----------------------------------------------------
  6. @import url(//fonts.googleapis.com/css?family=Telex);
  7. // SCAFFOLDING
  8. // -----------------------------------------------------
  9. // NAVBAR
  10. // -----------------------------------------------------
  11. .navbar {
  12. .brand {
  13. padding: 14px 20px 16px;
  14. font-family: @headingsFontFamily;
  15. text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  16. }
  17. li {
  18. line-height: 20px;
  19. }
  20. .nav > li > a {
  21. padding: 16px 10px 14px;
  22. font-family: @headingsFontFamily;
  23. text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  24. }
  25. .search-query {
  26. border: 1px solid darken(@linkColor, 10%);
  27. line-height: normal;
  28. }
  29. .navbar-text {
  30. padding: 19px 10px 18px;
  31. line-height: 13px;
  32. color: rgba(0, 0, 0, 0.5);
  33. text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  34. }
  35. &-inverse {
  36. .navbar-search .search-query {
  37. color: @textColor;
  38. }
  39. }
  40. }
  41. @media (max-width: @navbarCollapseWidth) {
  42. .navbar .nav-collapse {
  43. .nav li > a {
  44. font-family: @headingsFontFamily;
  45. font-weight: normal;
  46. color: @white;
  47. text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  48. &:hover {
  49. background-color: #2B7CAC;
  50. }
  51. }
  52. .nav .active > a {
  53. .box-shadow(none);
  54. background-color: #2B7CAC;
  55. }
  56. .dropdown-menu li > a:hover,
  57. .dropdown-menu li > a:focus,
  58. .dropdown-submenu:hover > a {
  59. background-image: none;
  60. }
  61. .navbar-form,
  62. .navbar-search {
  63. border: none;
  64. }
  65. .nav-header {
  66. color: #2B7CAC;
  67. }
  68. }
  69. .navbar-inverse .nav-collapse {
  70. .nav li > a {
  71. color: @navbarInverseLinkColor;
  72. &:hover {
  73. background-color: rgba(0, 0, 0, 0.1);
  74. }
  75. }
  76. .nav .active > a,
  77. .nav > li > a:hover,
  78. .dropdown-menu a:hover {
  79. background-color: rgba(0, 0, 0, 0.1) !important;
  80. }
  81. }
  82. }
  83. div.subnav {
  84. font-family: @headingsFontFamily;
  85. text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
  86. &-fixed {
  87. top: @navbarHeight;
  88. }
  89. }
  90. // NAV
  91. // -----------------------------------------------------
  92. // BUTTONS
  93. // -----------------------------------------------------
  94. .btn {
  95. #gradient > .vertical-three-colors(@white, @white, 5%, darken(@white, 0%));
  96. @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  97. .box-shadow(@shadow);
  98. &:hover {
  99. background-position: 0 0;
  100. }
  101. }
  102. .btn-primary {
  103. .buttonBackground(lighten(@btnPrimaryBackground, 5%), @btnPrimaryBackground);
  104. }
  105. .btn-info {
  106. .buttonBackground(lighten(@btnInfoBackground, 5%), @btnInfoBackground);
  107. }
  108. .btn-success {
  109. .buttonBackground(lighten(@btnSuccessBackground, 5%), @btnSuccessBackground);
  110. }
  111. .btn-warning {
  112. .buttonBackground(lighten(@btnWarningBackground, 5%), @btnWarningBackground);
  113. }
  114. .btn-danger {
  115. .buttonBackground(lighten(@btnDangerBackground, 5%), @btnDangerBackground);
  116. }
  117. .btn-inverse {
  118. .buttonBackground(lighten(@btnInverseBackground, 5%), @btnInverseBackground);
  119. }
  120. // TABLES
  121. // -----------------------------------------------------
  122. // FORMS
  123. // -----------------------------------------------------
  124. // DROPDOWNS
  125. // -----------------------------------------------------
  126. // ALERTS, LABELS, BADGES
  127. // -----------------------------------------------------
  128. // MISC
  129. // -----------------------------------------------------
  130. i[class^="icon-"]{
  131. opacity: 0.8;
  132. }
  133. // MEDIA QUERIES
  134. // -----------------------------------------------------