_admin.scss 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. $topbar-height: 4.2rem;
  2. $update-height: 3rem;
  3. $sidebar-width-large: 240px;
  4. $sidebar-width-small: $topbar-height;
  5. $sidebar-padding: 2rem;
  6. $content-padding: 1.5rem;
  7. // Special cases
  8. .sidebar-closed:not(.sidebar-quickopen) {
  9. #admin-sidebar {
  10. float: left;
  11. visibility: visible;
  12. opacity: 1;
  13. width: $sidebar-width-small;
  14. #admin-logo {
  15. h3 {
  16. font-size: 0;
  17. &:first-letter {
  18. font-size: 2.5rem;
  19. }
  20. }
  21. }
  22. .custom-logo {
  23. margin-right: 0;
  24. padding-right: 15px;
  25. img {
  26. padding: 0 5px;
  27. }
  28. }
  29. #grav-logo-small {
  30. display: inline-block;
  31. }
  32. #grav-logo-large {
  33. display: none;
  34. }
  35. .front-end {
  36. display: none;
  37. }
  38. #admin-user-details {
  39. padding: 15px 0 15px 10px;
  40. text-align: left;
  41. }
  42. .admin-user-names {
  43. display: none;
  44. }
  45. #admin-menu {
  46. em {
  47. display: none;
  48. }
  49. li {
  50. .badges {
  51. .updates {
  52. border-radius: 100%;
  53. position: absolute;
  54. top: 4px;
  55. right: 10px;
  56. font-size: 9px;
  57. line-height: 12px;
  58. padding: 1px 3px;
  59. min-width: 15px;
  60. }
  61. .count {
  62. display: none;
  63. }
  64. }
  65. }
  66. }
  67. #open-handle {
  68. @include breakpoint(large-desktop-plus) {
  69. .fa-angle-right:before {
  70. content: "\f105";
  71. }
  72. }
  73. }
  74. }
  75. #admin-main {
  76. margin-left: $sidebar-width-small;
  77. }
  78. }
  79. .sidebar-open {
  80. #admin-sidebar {
  81. z-index: 10001;
  82. float: left;
  83. visibility: visible;
  84. opacity: 1;
  85. width: $sidebar-width-large;
  86. h3 {
  87. font-size: 1.2rem;
  88. &:first-letter {
  89. font-size: 1.2rem;
  90. }
  91. }
  92. #grav-logo-small {
  93. display: none;
  94. }
  95. #grav-logo-large {
  96. display: inline-block;
  97. }
  98. #admin-user-details {
  99. padding: 15px 10px;
  100. text-align: left;
  101. }
  102. .admin-user-names {
  103. display: block;
  104. }
  105. .front-end {
  106. display: inline-block;
  107. }
  108. #admin-menu {
  109. em {
  110. display: inline;
  111. }
  112. li {
  113. .badges {
  114. .updates {
  115. border-bottom-right-radius: 0;
  116. border-top-right-radius: 0;
  117. position: relative;
  118. top: auto;
  119. right: auto;
  120. @extend .badge;
  121. }
  122. .count {
  123. display: inline-block;
  124. }
  125. }
  126. }
  127. }
  128. #open-handle {
  129. @include breakpoint(mini-nav-range) {
  130. .fa-angle-right:before {
  131. content: "\f104";
  132. }
  133. }
  134. }
  135. }
  136. }
  137. #admin-sidebar {
  138. position: absolute;
  139. left: 0;
  140. top: 0;
  141. bottom: 0;
  142. width: 100%;
  143. max-height: 100vh;
  144. opacity: 0;
  145. //transition: opacity 0.2s 0s, visibility 0s 0.2s;
  146. #open-handle {
  147. display: block;
  148. position: absolute;
  149. cursor: pointer;
  150. right:0;
  151. top: 0;
  152. width: 15px;
  153. height: $topbar-height;
  154. text-align: center;
  155. line-height: $topbar-height;
  156. font-size: 12px;
  157. border-top-right-radius: 3px;
  158. border-bottom-right-radius: 3px;
  159. @include breakpoint(large-desktop-plus) {
  160. .fa-angle-right:before {
  161. content: "\f104";
  162. }
  163. }
  164. }
  165. &.sidebar-is-visible {
  166. opacity: 1;
  167. visibility: visible;
  168. //transition: opacity 0.2s 0s, visibility 0s 0s
  169. }
  170. @include breakpoint(mobile-only) {
  171. z-index: 5;
  172. }
  173. @include breakpoint(tablet-plus) {
  174. float: left;
  175. visibility: visible;
  176. opacity: 1;
  177. width: $sidebar-width-small;
  178. }
  179. @include breakpoint(large-desktop-plus) {
  180. float: left;
  181. visibility: visible;
  182. opacity: 1;
  183. width: $sidebar-width-large;
  184. }
  185. }
  186. #admin-logo {
  187. height: $topbar-height;
  188. display: flex;
  189. align-items: center;
  190. justify-content: center;
  191. &.nav-hover {
  192. .admin-logo {
  193. margin-right: 0;
  194. }
  195. }
  196. .admin-logo {
  197. margin-right: -10px;
  198. @include breakpoint(tablet-plus) {
  199. margin-right: 0;
  200. &.custom-logo {
  201. padding-right: 15px;
  202. img {
  203. padding: 0 5px;
  204. }
  205. }
  206. }
  207. display: flex;
  208. align-items: center;
  209. a:not(.front-end) {
  210. display: inherit;
  211. }
  212. &.custom-logo {
  213. img {
  214. max-height: 30px;
  215. }
  216. }
  217. }
  218. .front-end {
  219. margin-left: 15px;
  220. opacity: 0.6;
  221. @include breakpoint(mobile-only) {
  222. display: none;
  223. }
  224. @include breakpoint(tablet-plus) {
  225. display: none;
  226. }
  227. @include breakpoint(large-desktop-plus) {
  228. display: inline-block;
  229. }
  230. }
  231. #grav-logo-small {
  232. height: 30px;
  233. display: none;
  234. @include breakpoint(tablet-plus) {
  235. display: inline-block;
  236. }
  237. @include breakpoint(large-desktop-plus) {
  238. display: none;
  239. }
  240. }
  241. #grav-logo-large {
  242. height: 30px;
  243. @include breakpoint(tablet-plus) {
  244. display: none;
  245. }
  246. @include breakpoint(large-desktop-plus) {
  247. display: inline-block;
  248. }
  249. }
  250. h3 {
  251. font-size: 1.5rem;
  252. margin: 0;
  253. @include breakpoint(tablet-plus) {
  254. font-size: 0;
  255. &:first-letter {
  256. font-size: 2.5rem;
  257. }
  258. }
  259. @include breakpoint(large-desktop-plus) {
  260. font-size: 1.5rem;
  261. &:first-letter {
  262. font-size: 1.5rem;
  263. }
  264. }
  265. i {
  266. font-size: 1rem;
  267. vertical-align: middle;
  268. margin-top: -1px;
  269. }
  270. }
  271. }
  272. .block-userinfo {
  273. img {
  274. width: 200px;
  275. height: 200px;
  276. object-fit: cover;
  277. }
  278. & + .block-file {
  279. margin-top: -5rem !important;
  280. }
  281. }
  282. #offline-status {
  283. padding: .2rem 1rem;
  284. text-align: center;
  285. display: none;
  286. .fa-plane {
  287. @include transform(rotate(45deg));
  288. }
  289. }
  290. #admin-user-details {
  291. img {
  292. width: 47px;
  293. height: 47px;
  294. object-fit: cover;
  295. }
  296. }
  297. #admin-user-details, .admin-user-details {
  298. padding: 15px 10px;
  299. min-height: 80px;
  300. overflow: hidden;
  301. text-align: left;
  302. @include breakpoint(mini-nav-range) {
  303. padding: 1rem 10px;
  304. text-align: center;
  305. }
  306. img {
  307. @include transition(all 0.5s ease);
  308. border-radius: 100%;
  309. float: left;
  310. }
  311. .admin-user-names {
  312. margin-left: 60px;
  313. margin-top: 5px;
  314. display: block;
  315. @include breakpoint(mini-nav-range) {
  316. display: none;
  317. }
  318. h4, h5 {
  319. margin: 0;
  320. font-size: 1rem;
  321. line-height: 1.3;
  322. }
  323. .badge {
  324. font-size: 0.8rem;
  325. }
  326. h5 {
  327. opacity: 0.7;
  328. font-size: 0.9rem;
  329. }
  330. }
  331. }
  332. #admin-nav-quick-tray {
  333. margin: 0;
  334. list-style: none;
  335. padding-left: 26px;
  336. padding-right: 10px;
  337. li {
  338. cursor: pointer;
  339. width: 24px;
  340. margin: 3px 0 5px;
  341. }
  342. i {
  343. transition: all .2s ease-in-out;
  344. &:hover {
  345. transform: scale(1.2);
  346. }
  347. }
  348. }
  349. .content-padding {
  350. #messages.default-box-shadow {
  351. margin-bottom: $content-padding;
  352. @include breakpoint(mobile-only) {
  353. margin-bottom: 0.5rem;
  354. }
  355. }
  356. }
  357. .admin-menu-wrapper {
  358. height: calc(100vh - 180px);
  359. //overflow: hidden;
  360. @include breakpoint(mini-nav-range) {
  361. height: calc(100vh - 136px);
  362. }
  363. }
  364. #admin-menu {
  365. display: block;
  366. margin: 0;
  367. padding: 0;
  368. list-style: none;
  369. em {
  370. font-style: normal;
  371. @include breakpoint(mini-nav-range) {
  372. display: none;
  373. }
  374. }
  375. li {
  376. .badges {
  377. float: right;
  378. margin-right: 1rem;
  379. .badge {
  380. display: inline-block;
  381. margin-right: -5px;
  382. }
  383. .updates {
  384. display: none;
  385. }
  386. .count {
  387. @include breakpoint(mini-nav-range) {
  388. display: none;
  389. }
  390. }
  391. &.with-updates {
  392. .count {
  393. border-bottom-left-radius: 0;
  394. border-top-left-radius: 0;
  395. }
  396. .updates {
  397. border-bottom-right-radius: 0;
  398. border-top-right-radius: 0;
  399. display: inline-block;
  400. @include breakpoint(mini-nav-range) {
  401. border-radius: 100%;
  402. position: absolute;
  403. top: 4px;
  404. right: 10px;
  405. font-size: 9px;
  406. line-height: 12px;
  407. padding: 1px 3px;
  408. min-width: 15px;
  409. }
  410. }
  411. }
  412. }
  413. a {
  414. @include transition(all 0.2s ease);
  415. display: block;
  416. padding-left: 25px;
  417. padding-top: 0.7rem;
  418. padding-bottom: 0.7rem;
  419. position: relative;
  420. .fa {
  421. @include transition(all 0.2s ease);
  422. margin-right: 8px;
  423. }
  424. }
  425. &.selected {
  426. a {
  427. padding-left: 16px;
  428. }
  429. }
  430. }
  431. }
  432. body.sidebar-quickopen #admin-main {
  433. @include breakpoint(large-desktop-plus) {
  434. margin-left: $sidebar-width-small;
  435. }
  436. }
  437. #admin-main {
  438. @include breakpoint(tablet-plus) {
  439. margin-left: $sidebar-width-small;
  440. }
  441. @include breakpoint(large-desktop-plus) {
  442. margin-left: $sidebar-width-large;
  443. }
  444. .form-label label {
  445. .hint:after, [data-hint]:after {
  446. max-width: 300px;
  447. min-width: 150px;
  448. display: inline-table;
  449. white-space: initial;
  450. line-height: 1.2;
  451. }
  452. }
  453. h1 {
  454. margin: 0;
  455. font-size: 1.3rem;
  456. text-align: left;
  457. letter-spacing: -1px;
  458. line-height: 1.5;
  459. }
  460. .padding {
  461. padding: $padding-default;
  462. }
  463. .lines-button {
  464. display: none;
  465. margin-left: $padding-default / 4;
  466. &:focus {
  467. outline:none;
  468. }
  469. @include breakpoint(mobile-only) {
  470. display: inline-block;
  471. }
  472. }
  473. .button {
  474. white-space: nowrap;
  475. }
  476. .titlebar {
  477. position: relative;
  478. height: $topbar-height;
  479. padding: 0 $padding-default;
  480. z-index: 4;
  481. box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
  482. @include breakpoint(mobile-only) {
  483. padding: 0 ($padding-default / 4) 0 ($padding-default + 2.5);
  484. }
  485. h1 {
  486. @extend %vertical-align;
  487. display: block;
  488. white-space: nowrap;
  489. overflow: hidden;
  490. -ms-text-overflow: ellipsis;
  491. text-overflow: ellipsis;
  492. @include breakpoint(mobile-only) {
  493. font-size: 18px;
  494. i {
  495. display: none;
  496. }
  497. }
  498. }
  499. .button-bar {
  500. @extend %vertical-align;
  501. padding: 0;
  502. white-space: nowrap;
  503. z-index: 4;
  504. }
  505. .preview {
  506. font-size: 90%;
  507. }
  508. .button {
  509. padding: 0.5rem 0.4rem;
  510. vertical-align: top;
  511. margin-right: -2px;
  512. @include breakpoint(mobile-only) {
  513. font-size: 0;
  514. padding: 0.5rem 0.5rem;
  515. min-height: 36px;
  516. i {
  517. font-size: 20px;
  518. margin-right: 0;
  519. }
  520. }
  521. @media only all and (max-width: 20.875em) {
  522. padding: 0.5rem 0.2rem;
  523. }
  524. }
  525. span.button {
  526. cursor: default;
  527. pointer-events: none;
  528. }
  529. @include breakpoint(mobile-only) {
  530. .dropdown-menu .button {
  531. font-size: 0.9rem;
  532. }
  533. }
  534. }
  535. .admin-block .alert {
  536. margin-top: -2rem;
  537. margin-bottom: 2rem;
  538. }
  539. .alert {
  540. &:before {
  541. font-family: FontAwesome;
  542. margin-right: 5px;
  543. }
  544. &.info:before {
  545. content: "\f0a1";
  546. }
  547. &.warning:before {
  548. content: "\f071";
  549. }
  550. &.note:before {
  551. content: "\f24a";
  552. }
  553. &.grav:before {
  554. font-family: FontAwesome, sans-serif;
  555. content: "\f2d6";
  556. vertical-align: bottom;
  557. }
  558. &.grav {
  559. #grav-update-button {
  560. margin-top: -3px;
  561. float: right;
  562. }
  563. }
  564. }
  565. .grav-update {
  566. @include clearfix;
  567. padding: 0 $padding-default;
  568. margin-top: -2rem;
  569. margin-bottom: 1rem;
  570. display: none;
  571. @include breakpoint(mobile-only) {
  572. padding: 0 1rem;
  573. }
  574. .button {
  575. float: right;
  576. margin-top: 0.6rem;
  577. margin-left: 1rem;
  578. line-height: 1.5;
  579. }
  580. p {
  581. line-height: $update-height;
  582. margin: 0;
  583. display: block;
  584. white-space: nowrap;
  585. overflow: hidden;
  586. -ms-text-overflow: ellipsis;
  587. text-overflow: ellipsis;
  588. }
  589. span[class="hint--left"]::after {
  590. line-height: 1.5;
  591. }
  592. i {
  593. padding-right: 0.5rem;
  594. }
  595. }
  596. .grav-update.grav + .content-wrapper {
  597. height: calc(100vh - #{$topbar-height} - #{$update-height});
  598. }
  599. .content-wrapper {
  600. position: relative;
  601. //overflow-y: hidden;
  602. height: calc(100vh - #{$topbar-height});
  603. //z-index: 0;
  604. }
  605. .content-padding {
  606. padding: $content-padding;
  607. @include breakpoint(mobile-only) {
  608. padding: 0;
  609. }
  610. }
  611. .admin-block {
  612. padding: 1rem 0;
  613. &:empty {
  614. padding: 0;
  615. }
  616. h1 {
  617. padding: 0 $padding-default 0.5rem;
  618. margin: 0 0 1rem;
  619. @include breakpoint(mobile-only) {
  620. padding: 0 1rem 0.5rem;
  621. }
  622. &.no_underline {
  623. border-bottom: 0;
  624. }
  625. }
  626. .button-bar {
  627. margin: 0 $padding-default;
  628. @include breakpoint(mobile-only) {
  629. margin: -1rem 0 1rem 0;
  630. padding: 0 1rem;
  631. text-align: center;
  632. .button {
  633. width: 100%;
  634. }
  635. }
  636. }
  637. }
  638. .flush-bottom {
  639. &.button-bar {
  640. margin: 1rem (-$padding-default) -1rem;
  641. padding: 1rem;
  642. float: none;
  643. display: flex;
  644. @include breakpoint(mobile-only) {
  645. &.stats-bar {
  646. font-size: 90%;
  647. b {
  648. font-size: 1.5rem;
  649. }
  650. }
  651. }
  652. .button {
  653. margin: 0;
  654. height: 37px;
  655. &.dropdown-toggle {
  656. margin-left: -4px;
  657. }
  658. }
  659. }
  660. }
  661. .danger, .success {
  662. position: relative;
  663. &.button-bar {
  664. margin: 2rem 0 -1rem;
  665. height: 70px;
  666. padding: 1rem;
  667. float: none;
  668. .button {
  669. @extend %vertical-align;
  670. }
  671. }
  672. }
  673. }
  674. .content-padding {
  675. #admin-dashboard {
  676. .dashboard-item-flex {
  677. &:nth-of-type(2n) .dashboard-item {
  678. margin-right: 0;
  679. margin-left: $content-padding / 2;
  680. }
  681. &:nth-of-type(2n+1) .dashboard-item {
  682. margin-left: 0;
  683. margin-right: $content-padding / 2;
  684. }
  685. }
  686. .dashboard-item {
  687. margin-bottom: $content-padding;
  688. }
  689. }
  690. }
  691. #admin-dashboard {
  692. @include display(flex);
  693. @include flex-flow(row wrap);
  694. .dashboard-item-flex {
  695. @include display(flex);
  696. @include flex-flow(column nowrap);
  697. width: 50%;
  698. @include breakpoint(mobile-only) {
  699. width: 100%;
  700. .dashboard-item {
  701. margin-right: 0px !important;
  702. margin-left: 0px !important;
  703. margin-bottom: 10px !important;
  704. }
  705. }
  706. }
  707. .dashboard-item {
  708. > div:not(.widget-content) {
  709. padding: 1rem $padding-default;
  710. }
  711. h1 .right {
  712. float: right;
  713. }
  714. &.admin-block {
  715. padding: 1rem 0;
  716. ul {
  717. margin: 0 0 1rem 0;
  718. padding: 0;
  719. list-style: none;
  720. }
  721. li {
  722. margin: 0;
  723. padding: 0.425rem $padding-default 0.2rem $padding-default;
  724. &:last-child {
  725. border-bottom: 0;
  726. }
  727. }
  728. }
  729. }
  730. .chart-loader {
  731. position: relative;
  732. .fa {
  733. display: block;
  734. position: absolute;
  735. width: 100%;
  736. text-align: center;
  737. font-size: 4rem;
  738. margin-top: -2rem;
  739. @extend %vertical-align;
  740. }
  741. text-align: center;
  742. }
  743. .widget-content {
  744. position: relative;
  745. min-height: 335px;
  746. padding: 0;
  747. }
  748. .widget-loader {
  749. position: absolute;
  750. text-align: center;
  751. top: 50%;
  752. left: 50%;
  753. width: 100%;
  754. transform: translate(-50%, -50%);
  755. .fa {
  756. font-size: 4rem;
  757. }
  758. }
  759. #updates {
  760. p {
  761. text-align: center;
  762. margin: 0;
  763. }
  764. .updates-chart {
  765. width: 50%;
  766. float: left;
  767. }
  768. .flush-bottom {
  769. &.button-bar {
  770. height: 70px;
  771. flex-direction: row-reverse;
  772. }
  773. }
  774. .chart-wrapper {
  775. position: relative;
  776. }
  777. .backups-chart {
  778. position: relative;
  779. width: 50%;
  780. float: left;
  781. }
  782. .ct-chart {
  783. min-height: 157px;
  784. }
  785. .numeric {
  786. display: block;
  787. position: absolute;
  788. width: 100%;
  789. text-align: center;
  790. font-size: 1.5rem;
  791. line-height: 1;
  792. @extend %vertical-align;
  793. em {
  794. display: block;
  795. font-style: normal;
  796. font-size: 1rem;
  797. }
  798. }
  799. .admin-update-charts {
  800. @include clearfix;
  801. min-height: 191px;
  802. }
  803. .button-bar > .button:not(.dropdown-toggle) {
  804. margin-left: 4px;
  805. height: 37px;
  806. }
  807. }
  808. #popularity {
  809. .ct-chart {
  810. min-height: 171px;
  811. }
  812. .button-bar {
  813. height: 100px;
  814. padding: 0 1rem;
  815. display: flex;
  816. }
  817. }
  818. .dashboard-item {
  819. .admin-statistics-chart {
  820. position: relative;
  821. }
  822. p {
  823. text-align: center;
  824. margin: 0;
  825. }
  826. .stat {
  827. width: 33%;
  828. text-align: center;
  829. display: flex;
  830. flex-direction: column;
  831. justify-content: center;
  832. b {
  833. display: block;
  834. font-size: 2.5rem;
  835. line-height: 1;
  836. font-weight: 300;
  837. }
  838. i {
  839. display: block;
  840. font-style: normal;
  841. }
  842. }
  843. }
  844. #news-feed {
  845. .date {
  846. float: right;
  847. z-index: 1;
  848. }
  849. li {
  850. a {
  851. display: block;
  852. white-space: nowrap;
  853. overflow: hidden;
  854. -ms-text-overflow: ellipsis;
  855. text-overflow: ellipsis;
  856. z-index: 0;
  857. &:before {
  858. font-family: FontAwesome;
  859. margin-right: 10px;
  860. content: "\f1ea";
  861. }
  862. }
  863. }
  864. }
  865. }
  866. .no-flick {
  867. -webkit-transform: translate3d(0, 0, 0);
  868. }
  869. .card-row {
  870. @include justify-content(space-between);
  871. }
  872. .card-item {
  873. @extend .no-flick;
  874. overflow: hidden;
  875. padding: 1rem;
  876. margin: 0;
  877. position: relative;
  878. width: 31%;
  879. max-width: 21rem;
  880. @include breakpoint(tablet-range) {
  881. width: 48%;
  882. }
  883. @include breakpoint(mobile-only) {
  884. width: 100%;
  885. }
  886. margin-bottom: 2rem;
  887. h4 {
  888. font-size: 1.2rem;
  889. line-height: 1.2;
  890. }
  891. }
  892. .user-details {
  893. text-align: left;
  894. img {
  895. border-radius: 100%;
  896. }
  897. h2 {
  898. margin: 0;
  899. font-size: 2.1rem !important;
  900. margin: 1rem 0 0 !important;
  901. line-height: 1.5;
  902. span {
  903. font-size: 1.2rem;
  904. }
  905. }
  906. h5 {
  907. font-size: 1.1rem;
  908. margin: 0;
  909. linep-height: 1.2;
  910. }
  911. .avatar {
  912. font-size: 0.9rem;
  913. padding: 0;
  914. }
  915. @include breakpoint(mobile-only) {
  916. text-align: center;
  917. }
  918. }
  919. #footer {
  920. text-align: center;
  921. padding: 3rem 0 1rem;
  922. p {
  923. margin: 0;
  924. }
  925. }
  926. // Chart overrides
  927. .ct-chart {
  928. .ct-series {
  929. .ct-bar {
  930. stroke-width: 20px;
  931. }
  932. }
  933. }
  934. #popularity .ct-chart {
  935. margin: 0 -10px -10px;
  936. .ct-chart-bar {
  937. padding: 4px 6px 1px 10px;
  938. }
  939. }
  940. #latest {
  941. .page-title, .page-route {
  942. overflow: auto;
  943. }
  944. }
  945. #overlay {
  946. position: fixed;
  947. width: 25%;
  948. height: 100%;
  949. z-index: 999999;
  950. left: 75%;
  951. top: 0;
  952. display: none;
  953. @include breakpoint(mobile-only) {
  954. display: none!important;
  955. }
  956. }
  957. // Fix tabs spacing in plugin / theme options
  958. .gpm-item-info + #blueprints .block-tabs {
  959. padding-top: 16px;
  960. }
  961. .plugins-notifications-container,
  962. .themes-notifications-container {
  963. margin-bottom: 2rem;
  964. }
  965. .package-dependencies-container {
  966. li {
  967. height: 35px;
  968. .button {
  969. height: 30px;
  970. float: right;
  971. margin-right: 10px;
  972. line-height: 20px;
  973. }
  974. }
  975. }
  976. .pointer-events-disabled {
  977. pointer-events: none;
  978. }
  979. // Reinstall packages
  980. .updates-checked {
  981. .button-reinstall-package {
  982. display: inline-block!important;
  983. }
  984. &.has-updates {
  985. .button-reinstall-package {
  986. display: none!important;
  987. }
  988. }
  989. }
  990. // Preview
  991. .preview-wrapper {
  992. .content-padding {
  993. position: absolute;
  994. top: 0;
  995. bottom: 0;
  996. right: 0;
  997. left: 0;
  998. }
  999. }
  1000. // Gumroad
  1001. .gumroad {
  1002. .cart-button {
  1003. display: none !important;
  1004. }
  1005. }
  1006. // Config Side Tabs
  1007. @include breakpoint(mobile-only) {
  1008. #admin-main .config-wrapper-system .form-tabs.side-tabs {
  1009. > .tabs-nav {
  1010. display: none;
  1011. width: 0;
  1012. }
  1013. > .tabs-content {
  1014. width: 100%;
  1015. .tab__content {
  1016. display: block;
  1017. }
  1018. }
  1019. }
  1020. }
  1021. // Log Viewer
  1022. .logs-output {
  1023. form {
  1024. .form-data {
  1025. display: flex;
  1026. margin: 0 -0.5rem;
  1027. @include breakpoint(small-mobile-range) {
  1028. display: block;
  1029. }
  1030. }
  1031. .forms-select-wrapper {
  1032. display: block;
  1033. flex: 1;
  1034. margin: 0.5rem 0.5rem;
  1035. }
  1036. }
  1037. h1 {
  1038. margin-top: 2rem !important;
  1039. }
  1040. h3 {
  1041. padding: 0.5rem 1.5rem;
  1042. font-size: 1.1rem;
  1043. @include breakpoint(mobile-only) {
  1044. padding: 0.5rem 1rem;
  1045. }
  1046. }
  1047. table.noflex {
  1048. td {
  1049. vertical-align: top;
  1050. }
  1051. td.date, td.level {
  1052. white-space: nowrap;
  1053. }
  1054. td.date {
  1055. opacity: 0.7;
  1056. }
  1057. th.level, td.level {
  1058. padding: 0.375rem 30px;
  1059. }
  1060. td.level {
  1061. font-weight: bold;
  1062. span.badge {
  1063. font-size: 0.7rem;
  1064. }
  1065. }
  1066. td.message {
  1067. width: 100%;
  1068. word-break: break-all;
  1069. }
  1070. .trace {
  1071. ol {
  1072. margin: 10px 0;
  1073. padding: 0;
  1074. font-size: 0.7rem;
  1075. code {
  1076. font-size: 0.7rem;
  1077. display: block;
  1078. white-space: pre-wrap
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. // New 1.7 Permissions
  1085. .permissions-container {
  1086. max-width: 800px;
  1087. .badge .icon-super {
  1088. display: block;
  1089. height: 20px;
  1090. width: 14px;
  1091. line-height: 1.5;
  1092. &:before {
  1093. content: url('../images/icons/crown.svg');
  1094. }
  1095. }
  1096. .switch-toggle {
  1097. input+label:before {
  1098. font-family: FontAwesome;
  1099. margin-right: 5px;
  1100. }
  1101. input.label0+label:before{
  1102. content: "\f05e";
  1103. }
  1104. input.label1+label:before {
  1105. content: "\f00c";
  1106. }
  1107. }
  1108. fieldset {
  1109. margin: 0 0 1rem 0;
  1110. padding: 1rem;
  1111. border-radius: $border-radius;
  1112. legend {
  1113. padding: 0 0.5rem;
  1114. margin-left: -0.5rem;
  1115. font-size: 120%;
  1116. }
  1117. fieldset {
  1118. margin: 0;
  1119. border: 0;
  1120. padding: 0.5rem 0 0 2rem;
  1121. legend {
  1122. padding: 0;
  1123. margin: 0;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .permission-container {
  1129. display: flex;
  1130. .permission-name {
  1131. flex-grow: 1;
  1132. position: relative;
  1133. overflow: hidden;
  1134. margin-right: 8px;
  1135. padding-top: 9px;
  1136. span:not(.badge) {
  1137. position: relative;
  1138. padding-right: 5px;
  1139. }
  1140. span.badge {
  1141. position: relative;
  1142. float: right;
  1143. font-size: 100%;
  1144. border-radius: 20px;
  1145. margin-right: -2px;
  1146. }
  1147. &:before {
  1148. content: "........................................................................................................................................";
  1149. height: 1px;
  1150. position: absolute;
  1151. right: 100%;
  1152. left: 0;
  1153. }
  1154. }
  1155. }
  1156. // Reports
  1157. .reports-content {
  1158. .report-output {
  1159. table, tbody, thead {
  1160. display: table;
  1161. width: 100%;
  1162. }
  1163. table {
  1164. thead {
  1165. tr {
  1166. th {
  1167. display: table-cell;
  1168. }
  1169. }
  1170. }
  1171. tbody {
  1172. tr {
  1173. td {
  1174. display: table-cell;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }