custom.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. @import "bootstrap-sprockets";
  2. @import "bootstrap";
  3. @import "font-awesome";
  4. $gray-darker: lighten(#000, 13.5%);
  5. $gray-dark: lighten(#000, 20%);
  6. $gray: lighten(#000, 33.5%);
  7. $gray-light: lighten(#000, 60%);
  8. $gray-lighter: lighten(#000, 93.5%);
  9. $gray-lightest: lighten(#000, 97.25%);
  10. // Global Styles
  11. body {
  12. background-color: $gray-lightest;
  13. }
  14. // Wrappers
  15. #wrapper {
  16. width: 100%;
  17. }
  18. #page-wrapper {
  19. padding: 0 15px;
  20. min-height: 568px;
  21. background-color: white;
  22. }
  23. @media(min-width:768px) {
  24. #page-wrapper {
  25. position: inherit;
  26. margin: 0 0 0 250px;
  27. padding: 0 30px;
  28. border-left: 1px solid darken($gray-lightest, 6.5%);
  29. }
  30. }
  31. // Forms
  32. textarea {
  33. max-width: 100%;
  34. }
  35. // --Chips
  36. .chip-container {
  37. display: inline-block;
  38. div {
  39. display: inline-block;
  40. border-radius: 5px;
  41. border: 1px dotted #c5c5c5;
  42. background-color: #fff;
  43. padding: 2px;
  44. font-size: 11px;
  45. cursor: pointer;
  46. margin-right: 2px;
  47. }
  48. }
  49. .chips {
  50. &:hover {
  51. cursor: text;
  52. }
  53. input {
  54. background: none;
  55. border: 0;
  56. display: inline-block;
  57. padding: 0 !important;
  58. width: 300px !important;
  59. }
  60. // Search
  61. .results {
  62. position: absolute;
  63. margin-top: 6px;
  64. margin-left: -6px;
  65. width: 500px;
  66. background-color: #fff;
  67. overflow: hidden;
  68. border: 1px solid #ccc;
  69. border-top: none;
  70. list-style: none;
  71. padding-left: 5px;
  72. cursor: pointer;
  73. z-index: 1;
  74. }
  75. }
  76. // Navigation
  77. // --Topbar
  78. .navbar-top-links {
  79. margin-right: 0;
  80. }
  81. .navbar-top-links li {
  82. display: inline-block;
  83. }
  84. .navbar-top-links li:last-child {
  85. margin-right: 15px;
  86. }
  87. .navbar-top-links li a {
  88. padding: 15px;
  89. min-height: 50px;
  90. }
  91. .navbar-top-links .dropdown-menu li {
  92. display: block;
  93. }
  94. .navbar-top-links .dropdown-menu li:last-child {
  95. margin-right: 0;
  96. }
  97. .navbar-top-links .dropdown-menu li a {
  98. padding: 3px 20px;
  99. min-height: 0;
  100. }
  101. .navbar-top-links .dropdown-menu li a div {
  102. white-space: normal;
  103. }
  104. .navbar-top-links .dropdown-messages,
  105. .navbar-top-links .dropdown-tasks,
  106. .navbar-top-links .dropdown-alerts {
  107. width: 310px;
  108. min-width: 0;
  109. }
  110. .navbar-top-links .dropdown-messages {
  111. margin-left: 5px;
  112. }
  113. .unread-messages {
  114. color: red;
  115. }
  116. .navbar-top-links .dropdown-user {
  117. right: 0;
  118. left: auto;
  119. }
  120. // --Sidebar
  121. .sidebar {
  122. .sidebar-nav.navbar-collapse {
  123. padding-left: 0;
  124. padding-right: 0;
  125. }
  126. }
  127. .sidebar .sidebar-search {
  128. padding: 15px;
  129. }
  130. .sidebar ul li {
  131. border-bottom: 1px solid darken($gray-lightest, 6.5%);
  132. a {
  133. &.active {
  134. background-color: $gray-lighter;
  135. }
  136. }
  137. }
  138. .sidebar .arrow {
  139. float: right;
  140. }
  141. .sidebar .fa.arrow:before {
  142. content: "\f104";
  143. }
  144. .sidebar .active > a > .fa.arrow:before {
  145. content: "\f107";
  146. }
  147. .sidebar .nav-second-level li,
  148. .sidebar .nav-third-level li {
  149. border-bottom: none !important;
  150. }
  151. .sidebar .nav-second-level li a {
  152. padding-left: 37px;
  153. }
  154. .sidebar .nav-third-level li a {
  155. padding-left: 52px;
  156. }
  157. @media(min-width:768px) {
  158. .sidebar {
  159. z-index: 1;
  160. position: absolute;
  161. width: 250px;
  162. margin-top: 51px;
  163. }
  164. .navbar-top-links .dropdown-messages,
  165. .navbar-top-links .dropdown-tasks,
  166. .navbar-top-links .dropdown-alerts {
  167. margin-left: auto;
  168. }
  169. }
  170. // Footer
  171. footer {
  172. text-align: center;
  173. a {
  174. color: $gray;
  175. &:hover {
  176. color: $gray-dark;
  177. }
  178. }
  179. }