_admin.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. $sidebar-width: 20%;
  2. $sidebar-padding: 2rem;
  3. $topbar-height: 4.2rem;
  4. $update-height: 3rem;
  5. #admin-sidebar {
  6. position: absolute;
  7. left: 0;
  8. top: 0;
  9. bottom: 0;
  10. width: $sidebar-width;
  11. background: $accent-bg;
  12. @include breakpoint(mobile-only) {
  13. display: none;
  14. width: 75%;
  15. z-index: 999999;
  16. }
  17. a {
  18. color: shade($accent-fg,20%);
  19. &:hover {
  20. color: $accent-fg;
  21. }
  22. }
  23. }
  24. #admin-logo {
  25. background: $darker-accent-bg;
  26. height: $topbar-height;
  27. h3 {
  28. text-transform: uppercase;
  29. margin: 0;
  30. @extend %vertical-align;
  31. text-align: center;
  32. font-size: 1.2rem;
  33. i {
  34. font-size: 1rem;
  35. vertical-align: middle;
  36. margin-top: -1px;
  37. }
  38. }
  39. }
  40. #admin-user-details {
  41. padding: $sidebar-padding;
  42. border-bottom: 1px solid $darker-accent-bg;
  43. overflow: hidden;
  44. img {
  45. @include transition(all 0.5s ease);
  46. border-radius: 100%;
  47. float: left;
  48. @include breakpoint(tablet-range){
  49. float: none;
  50. }
  51. }
  52. &:hover img {
  53. box-shadow: 0px 0px 0 50px lighten($accent-bg,3%);
  54. }
  55. .admin-user-names {
  56. margin-left: 45px;
  57. @include breakpoint(tablet-range){
  58. margin-left: 0;
  59. }
  60. h4, h5 {
  61. color: darken($accent-fg,10%);
  62. margin: 0;
  63. font-size: 1rem;
  64. line-height: 1.3;
  65. }
  66. h5 {
  67. font-family: $font-family-default;
  68. color: lighten($accent-bg,55%);
  69. font-size: 0.9rem;
  70. }
  71. }
  72. }
  73. #admin-menu {
  74. display: block;
  75. margin: 0;
  76. padding: 0;
  77. list-style: none;
  78. li {
  79. font-family: $font-family-header;
  80. .badges {
  81. float: right;
  82. margin-right:1rem;
  83. .badge {
  84. display: inline-block;
  85. margin-right: -5px;
  86. color: shade($accent-fg,10%);
  87. }
  88. .count {
  89. background-color: lighten($accent-bg, 10%);
  90. }
  91. .updates {
  92. background-color: $tertiary-accent-bg;
  93. display: none;
  94. }
  95. &.with-updates {
  96. .count {
  97. border-bottom-left-radius: 0;
  98. border-top-left-radius: 0;
  99. }
  100. .updates {
  101. border-bottom-right-radius: 0;
  102. border-top-right-radius: 0;
  103. display: inline-block;
  104. }
  105. }
  106. }
  107. a {
  108. @include transition(all 0.2s ease);
  109. display: block;
  110. padding-left: 25px;
  111. padding-top: 0.7rem;
  112. padding-bottom: 0.7rem;
  113. color: lighten($accent-bg,65%);
  114. @include breakpoint(tablet-range){
  115. padding-left: 20px;
  116. }
  117. i {
  118. @include transition(all 0.2s ease);
  119. color: lighten($accent-bg,55%);
  120. margin-right: 8px;
  121. @include breakpoint(tablet-range){
  122. display: none;
  123. }
  124. }
  125. &:hover {
  126. background: $darker-accent-bg;
  127. // padding-left: 30px;
  128. color: $accent-fg;
  129. i {
  130. font-size: 1.2rem;
  131. }
  132. }
  133. }
  134. &.selected {
  135. a {
  136. background: $page-bg;
  137. color: $accent-fg;
  138. padding-left: 16px;
  139. border-left: 9px solid $secondary-accent-bg;
  140. @include breakpoint(tablet-range){
  141. padding-left: 11px;
  142. }
  143. i {
  144. color: lighten($accent-bg,70%);
  145. }
  146. }
  147. }
  148. }
  149. }
  150. #admin-main {
  151. margin-left: $sidebar-width;
  152. @include breakpoint(mobile-only) {
  153. width: 100%;
  154. margin-left: 0;
  155. }
  156. .hint:after, [data-hint]:after {
  157. font-size: 0.9rem;
  158. width: 400px;
  159. line-height: inherit;
  160. white-space: normal;
  161. }
  162. h1 {
  163. margin: 0;
  164. font-size: 1.5rem;
  165. text-align: left;
  166. letter-spacing: -1px;
  167. }
  168. .titlebar {
  169. position: relative;
  170. height: $topbar-height;
  171. padding: 0 $padding-default;
  172. h1 {
  173. @extend %vertical-align;
  174. @include breakpoint(mobile-only){
  175. > i:first-child:before {
  176. content: "\f0c9";
  177. }
  178. @include transform(inherit);
  179. top: 5px;
  180. font-size: 1.2rem;
  181. }
  182. }
  183. .button-bar {
  184. @extend %vertical-align;
  185. padding: 0;
  186. @include breakpoint(mobile-only) {
  187. @include transform(inherit);
  188. top: inherit;
  189. bottom: 5px;
  190. position: absolute;
  191. right: 1rem;
  192. }
  193. }
  194. .preview {
  195. color: $secondary-accent-fg;
  196. font-size: 90%;
  197. }
  198. .button {
  199. padding: 0.3rem 0.6rem;
  200. @include breakpoint(mobile-only) {
  201. padding: 0.2rem 0.5rem;
  202. font-size: 0.9rem;
  203. }
  204. i {
  205. font-size: 13px;
  206. }
  207. }
  208. }
  209. .admin-block .grav-update, .admin-block .alert {
  210. margin-top: -2rem;
  211. margin-bottom: 2rem;
  212. }
  213. .grav-update {
  214. @include clearfix;
  215. padding: 0 $padding-default;
  216. margin-top: -$padding-default;
  217. background: $info-bg;
  218. color: $info-fg;
  219. &.plugins {
  220. padding-right: 1rem;
  221. }
  222. .button {
  223. float: right;
  224. margin-top: 0.6rem;
  225. margin-left: 1rem;
  226. line-height: 1.5;
  227. @include button-color(shade($info-bg, 20%));
  228. }
  229. p {
  230. line-height: $update-height;
  231. margin: 0;
  232. }
  233. i {
  234. padding-right: 0.5rem;
  235. }
  236. .less {
  237. color: rgba($info-fg,0.75);
  238. }
  239. &.grav {
  240. margin-top: 0;
  241. @include transition (margin-top 0.15s ease-out);
  242. @include breakpoint(mobile-only){
  243. position: absolute;
  244. z-index: 9;
  245. bottom: 0;
  246. width: 100%;
  247. p * {
  248. display: none;
  249. }
  250. p {
  251. font-size: 0;
  252. button {
  253. width: 95%;
  254. display: inherit;
  255. position: absolute;
  256. top: 0;
  257. left: 0;
  258. margin-left: 2.5%;
  259. margin-right: 2.5%;
  260. padding-left: 0;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. .grav-update.grav + .content-padding {
  267. top: $topbar-height + $update-height;
  268. @include transition (top 0.15s ease-out);
  269. @include breakpoint(mobile-only){
  270. top: 5.2rem;
  271. padding-bottom: 8rem;
  272. padding-top: 0rem;
  273. }
  274. }
  275. .content-padding {
  276. position: absolute;
  277. top: $topbar-height;
  278. bottom: 0;
  279. left: $sidebar-width;
  280. right: 0;
  281. overflow-y: auto;
  282. padding: 2.5rem;
  283. @include breakpoint(mobile-only) {
  284. left: 0;
  285. }
  286. }
  287. .admin-block {
  288. background: $content-bg;
  289. color: $content-fg;
  290. padding: 2rem 0;
  291. h1 {
  292. color: $page-bg;
  293. padding: 0 $padding-default 0.5rem;
  294. margin: 0 0 1rem;
  295. border-bottom: 3px solid darken($content-bg, 5%);
  296. @include breakpoint(mobile-only){
  297. padding: 0 0 0.5rem;
  298. margin: 0 0 1rem !important;
  299. text-indent: $padding-default;
  300. }
  301. &.no_underline {
  302. border-bottom: 0;
  303. }
  304. }
  305. .button-bar {
  306. margin-right: $padding-default;
  307. @include breakpoint(mobile-only) {
  308. width: 100%;
  309. margin: -.5rem 0 1rem 0;
  310. text-align: center;
  311. .button {
  312. width: 100%;
  313. }
  314. }
  315. }
  316. }
  317. .flush-bottom {
  318. &.button-bar {
  319. margin: 1rem -2rem -1rem;
  320. height: 70px;
  321. padding: 0 1rem;
  322. float: none;
  323. @include breakpoint(mobile-only){
  324. height: auto;
  325. padding: 2rem 1rem 0rem 1rem;
  326. }
  327. .button {
  328. @extend %vertical-align;
  329. @include breakpoint(mobile-only) {
  330. margin-left: 0 !important;
  331. margin-bottom: .5rem;
  332. width: 100%;
  333. }
  334. }
  335. }
  336. }
  337. .danger, .success {
  338. position: relative;
  339. &.button-bar {
  340. margin: 2rem 0 -2rem;
  341. height: 70px;
  342. padding: 1rem;
  343. float: none;
  344. .button {
  345. @extend %vertical-align;
  346. }
  347. background: darken($content-bg, 2%);
  348. }
  349. }
  350. .danger {
  351. &.button-bar {
  352. .button {
  353. @include button-color($secondary-link);
  354. }
  355. }
  356. }
  357. }
  358. #admin-dashboard {
  359. @include clearfix;
  360. .dashboard-item {
  361. float: left;
  362. width: 50%;
  363. margin-bottom: 2.5rem;
  364. @include breakpoint(mobile-only) {
  365. width: 100%;
  366. }
  367. > div {
  368. padding: 1rem 2rem;
  369. }
  370. }
  371. .dashboard-left {
  372. padding-right: 1.25rem;
  373. @include breakpoint(mobile-only) {
  374. padding-right: 0rem;
  375. }
  376. }
  377. .dashboard-right {
  378. padding-left: 1.25rem;
  379. @include breakpoint(mobile-only) {
  380. padding-left: 0rem;
  381. }
  382. }
  383. #updates {
  384. p {
  385. text-align: center;
  386. color: rgba($white,0.96);
  387. margin: 0;
  388. }
  389. .updates-chart {
  390. width: 50%;
  391. float: left;
  392. }
  393. .chart-wrapper {
  394. position: relative;
  395. }
  396. .backups-chart {
  397. position: relative;
  398. width: 50%;
  399. float: left;
  400. }
  401. .numeric {
  402. display: block;
  403. position: absolute;
  404. width: 100%;
  405. text-align: center;
  406. font-size: 1.7rem;
  407. line-height: 1;
  408. @extend %vertical-align;
  409. em {
  410. display:block;
  411. font-style: normal;
  412. font-size: 1rem;
  413. color: rgba($white, .85);
  414. }
  415. }
  416. .admin-update-charts {
  417. @include clearfix;
  418. min-height: 191px;
  419. }
  420. .button {
  421. margin-left: 0.5rem;
  422. @include breakpoint(tablet-range){
  423. width: 49%;
  424. padding: .3rem 0rem;
  425. margin-left: 0;
  426. }
  427. }
  428. }
  429. #popularity {
  430. p {
  431. text-align: center;
  432. color: rgba($white,0.95);
  433. margin: 0;
  434. }
  435. .button-bar {
  436. height: 100px;
  437. padding: 0 1rem;
  438. }
  439. .stat {
  440. @extend %vertical-align;
  441. display:block;
  442. float: left;
  443. width: 33%;
  444. text-align: center;
  445. b {
  446. display: block;
  447. font-size: 2.5rem;
  448. line-height: 1;
  449. font-weight: 300;
  450. }
  451. i {
  452. display: block;
  453. font-style: normal;
  454. color: rgba($white, 0.75);
  455. }
  456. }
  457. }
  458. .tertiary-accent {
  459. @include linear-gradient($tertiary-accent-bg, lighten($tertiary-accent-bg,20%));
  460. }
  461. .secondary-accent {
  462. @include linear-gradient($secondary-accent-bg, lighten($secondary-accent-bg,20%));
  463. }
  464. }
  465. .no-flick{-webkit-transform:translate3d(0,0,0);}
  466. .card-row {
  467. @include justify-content(space-between);
  468. }
  469. .card-item {
  470. @extend .no-flick;
  471. overflow: hidden;
  472. padding: 1rem;
  473. margin: 0;
  474. position: relative;
  475. width: 31%;
  476. @include breakpoint(tablet-range) {
  477. width: 48%;
  478. }
  479. @include breakpoint(mobile-only) {
  480. width: 100%;
  481. }
  482. border: 1px solid darken($content-bg, 5%);
  483. background: $white;
  484. margin-bottom: 2rem;
  485. h4 {
  486. font-size: 1.2rem;
  487. line-height: 1.2;
  488. }
  489. }
  490. .user-details {
  491. text-align: center;
  492. img {
  493. border-radius: 100%;
  494. }
  495. h2 {
  496. margin: 0;
  497. font-size: 1.8rem;
  498. }
  499. h5 {
  500. color: lighten($content-fg,10%);
  501. font-size: 1.1rem;
  502. margin: 0;
  503. }
  504. }
  505. #footer {
  506. text-align: center;
  507. padding: 3rem 0 1rem;
  508. }
  509. // Chart overrides
  510. .ct-chart {
  511. .ct-series {
  512. .ct-bar {
  513. stroke-width: 20px;
  514. }
  515. &.ct-series-a {
  516. .ct-bar {
  517. stroke: rgba($white, 0.85) !important;
  518. }
  519. .ct-slice-donut {
  520. stroke: $white !important;
  521. }
  522. }
  523. &.ct-series-b {
  524. .ct-slice-donut {
  525. stroke: rgba($white, 0.2) !important;
  526. }
  527. }
  528. }
  529. }
  530. #popularity .ct-chart {
  531. margin: 0 -10px -10px;
  532. .ct-chart-bar {
  533. padding: 10px;
  534. }
  535. }
  536. #latest {
  537. .page-title, .page-route {
  538. overflow: auto;
  539. }
  540. .last-modified {
  541. padding-left: 10px;
  542. }
  543. }
  544. #overlay {
  545. position: fixed;
  546. width: 25%;
  547. height: 100%;
  548. z-index: 999999;
  549. left: 75%;
  550. top: 0;
  551. display: none;
  552. }