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.

356 lines
5.7 KiB

  1. .dashboard-wrapper {
  2. background: #282c37;
  3. border-radius: 4px;
  4. margin: 20px auto;
  5. width: 940px;
  6. display: flex;
  7. overflow: hidden;
  8. .dashboard__sidebar {
  9. width: 240px;
  10. border-radius: 4px 0 0 4px;
  11. flex-shrink: 0;
  12. .dashboard__top-bar {
  13. border-radius: 4px 0 0 0;
  14. }
  15. ul {
  16. padding: 20px 0;
  17. a {
  18. display: block;
  19. padding: 7px 20px;
  20. color: #d9e1e8;
  21. text-decoration: none;
  22. font-size: 14px;
  23. font-weight: 400;
  24. .fa {
  25. display: inline-block;
  26. width: 18px;
  27. text-align: center;
  28. margin-right: 5px;
  29. }
  30. &:hover {
  31. color: #fff;
  32. background: darken(#282c37, 1%);
  33. }
  34. }
  35. .active {
  36. a {
  37. background: darken(#282c37, 5%);
  38. border-left: 2px solid #2b90d9;
  39. padding-left: 18px;
  40. }
  41. }
  42. }
  43. }
  44. .dashboard__current-user {
  45. padding: 20px;
  46. a {
  47. text-decoration: none;
  48. color: inherit;
  49. outline: 0;
  50. }
  51. .dashboard__current-user__avatar {
  52. display: block;
  53. width: 50px;
  54. height: 50px;
  55. border-radius: 50px;
  56. float: left;
  57. margin-right: 15px;
  58. }
  59. .dashboard__current-user__display-name {
  60. font-weight: 500;
  61. font-size: 13px;
  62. color: #d9e1e8;
  63. display: block;
  64. margin-top: 5px;
  65. }
  66. .dashboard__current-user__username {
  67. font-size: 12px;
  68. display: block;
  69. color: #2b90d9;
  70. }
  71. }
  72. .dashboard__logo {
  73. color: #2b90d9;
  74. span {
  75. font-weight: 500;
  76. }
  77. }
  78. .dashboard__top-bar {
  79. background: #fff;
  80. padding: 20px;
  81. box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  82. color: #282c37;
  83. font-size: 16px;
  84. overflow: hidden;
  85. &.alternate {
  86. background: lighten(#282c37, 10%);
  87. text-align: center;
  88. }
  89. ul {
  90. float: right;
  91. list-style: none;
  92. display: block;
  93. li {
  94. display: inline-block;
  95. margin-left: 7px;
  96. }
  97. }
  98. a {
  99. color: #9baec8;
  100. text-decoration: none;
  101. }
  102. }
  103. .dashboard__content {
  104. flex: 1;
  105. background: #d9e1e8;
  106. border-radius: 0 4px 4px 0;
  107. .dashboard__top-bar {
  108. border-radius: 0 4px 0 0;
  109. }
  110. }
  111. }
  112. .dashboard__content__content {
  113. padding: 20px;
  114. color: #282c37;
  115. line-height: 18px;
  116. h3 {
  117. font-size: 14px;
  118. font-weight: 500;
  119. margin-bottom: 15px;
  120. }
  121. p {
  122. margin-bottom: 15px;
  123. }
  124. samp {
  125. font-family: 'Roboto Mono', monospace;
  126. }
  127. ul {
  128. list-style: circle;
  129. padding-left: 15px;
  130. margin-bottom: 15px;
  131. }
  132. .table {
  133. width: 100%;
  134. th {
  135. font-weight: 500;
  136. text-align: left;
  137. border-bottom: 1px solid lighten(#282c37, 55%);
  138. }
  139. th, td {
  140. padding: 5px 0;
  141. line-height: 18px;
  142. }
  143. }
  144. a {
  145. color: #2b90d9;
  146. text-decoration: underline;
  147. &:hover {
  148. text-decoration: none;
  149. }
  150. }
  151. .btn {
  152. display: inline-block;
  153. border: 0;
  154. background: #2b90d9;
  155. border-radius: 16px;
  156. padding: 6px 16px;
  157. font-size: 12px;
  158. font-weight: 500;
  159. color: #fff;
  160. cursor: pointer;
  161. font-family: 'Roboto', sans-serif;
  162. text-decoration: none;
  163. &:hover {
  164. background: lighten(#2b90d9, 5%);
  165. }
  166. &.btn-iconized {
  167. font-size: 16px;
  168. font-weight: 400;
  169. width: 24px;
  170. text-align: center;
  171. padding: 10px 7px;
  172. border-radius: 100px;
  173. box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  174. }
  175. }
  176. hr {
  177. clear: both;
  178. border: 0;
  179. padding: 0;
  180. width: 100%;
  181. height: 0;
  182. margin: 30px 0;
  183. }
  184. }
  185. .simple_form {
  186. .form-actions {
  187. padding-top: 20px;
  188. text-align: center;
  189. }
  190. .error_notification {
  191. color: #df405a;
  192. font-weight: 500;
  193. margin-bottom: 15px;
  194. }
  195. .input {
  196. margin-bottom: 15px;
  197. label {
  198. display: block;
  199. text-transform: uppercase;
  200. font-size: 11px;
  201. font-weight: 500;
  202. margin-bottom: 10px;
  203. }
  204. input[type=text], input[type=email], input[type=password], textarea {
  205. display: block;
  206. box-sizing: border-box;
  207. width: 100%;
  208. border: 0;
  209. background: transparent;
  210. border-bottom: 1px solid lighten(#282c37, 55%);
  211. padding: 5px 0;
  212. outline: 0;
  213. padding-bottom: 6px;
  214. font-size: 14px;
  215. font-family: 'Roboto', sans-serif;
  216. color: #282c37;
  217. &:focus, &:active {
  218. border-bottom: 2px solid #2b90d9;
  219. padding-bottom: 5px;
  220. }
  221. }
  222. input[type=file] {
  223. display: block;
  224. }
  225. .hint {
  226. display: block;
  227. margin-top: 5px;
  228. color: lighten(#282c37, 25%);
  229. }
  230. &.field_with_errors {
  231. input[type=text], input[type=email], input[type=password], textarea {
  232. border-bottom: 2px solid #df405a;
  233. padding-bottom: 5px;
  234. &:focus, &:active {
  235. border-bottom: 2px solid #2b90d9;
  236. padding-bottom: 5px;
  237. }
  238. }
  239. .error {
  240. display: block;
  241. margin-top: 5px;
  242. color: #df405a;
  243. }
  244. }
  245. }
  246. }
  247. .panel {
  248. box-sizing: border-box;
  249. padding: 10px 15px;
  250. background: lighten(#d9e1e8, 5%);
  251. margin-bottom: 20px;
  252. border-radius: 4px;
  253. .panel-heading {
  254. font-size: 13px;
  255. text-transform: uppercase;
  256. color: lighten(#282c37, 25%);
  257. margin-bottom: 10px;
  258. }
  259. &.panel-full {
  260. width: 100%;
  261. }
  262. .panel-row {
  263. display: flex;
  264. dt {
  265. color: #282c37;
  266. width: 100px;
  267. }
  268. dd {
  269. flex: 1;
  270. color: lighten(#282c37, 25%);
  271. }
  272. &.panel-row-wider {
  273. dt {
  274. width: auto;
  275. flex: 1;
  276. }
  277. }
  278. }
  279. }
  280. .row {
  281. overflow: hidden;
  282. clear: both;
  283. .panel {
  284. float: left;
  285. width: 320px;
  286. margin-right: 20px;
  287. &:last-child {
  288. margin-right: 0;
  289. }
  290. }
  291. }
  292. .page-actions {
  293. margin-top: 20px;
  294. text-align: right;
  295. .btn {
  296. margin-left: 5px;
  297. }
  298. }