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.

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