_admin.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431
  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. .gravatar {
  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. // Config Side Tabs
  1001. @include breakpoint(mobile-only) {
  1002. #admin-main .config-wrapper-system .form-tabs.side-tabs {
  1003. > .tabs-nav {
  1004. display: none;
  1005. width: 0;
  1006. }
  1007. > .tabs-content {
  1008. width: 100%;
  1009. .tab__content {
  1010. display: block;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. // Log Viewer
  1016. .logs-output {
  1017. form {
  1018. .form-data {
  1019. display: flex;
  1020. margin: 0 -0.5rem;
  1021. @include breakpoint(small-mobile-range) {
  1022. display: block;
  1023. }
  1024. }
  1025. .forms-select-wrapper {
  1026. display: block;
  1027. flex: 1;
  1028. margin: 0.5rem 0.5rem;
  1029. }
  1030. }
  1031. h1 {
  1032. margin-top: 2rem !important;
  1033. }
  1034. h3 {
  1035. padding: 0.5rem 1.5rem;
  1036. font-size: 1.1rem;
  1037. @include breakpoint(mobile-only) {
  1038. padding: 0.5rem 1rem;
  1039. }
  1040. }
  1041. table.noflex {
  1042. td {
  1043. vertical-align: top;
  1044. }
  1045. td.date, td.level {
  1046. white-space: nowrap;
  1047. }
  1048. td.date {
  1049. opacity: 0.7;
  1050. }
  1051. th.level, td.level {
  1052. padding: 0.375rem 30px;
  1053. }
  1054. td.level {
  1055. font-weight: bold;
  1056. span.badge {
  1057. font-size: 0.7rem;
  1058. }
  1059. }
  1060. td.message {
  1061. width: 100%;
  1062. word-break: break-all;
  1063. }
  1064. .trace {
  1065. ol {
  1066. margin: 10px 0;
  1067. padding: 0;
  1068. font-size: 0.7rem;
  1069. code {
  1070. font-size: 0.7rem;
  1071. display: block;
  1072. white-space: pre-wrap
  1073. }
  1074. }
  1075. }
  1076. }
  1077. }
  1078. // New 1.7 Permissions
  1079. .permissions-container {
  1080. max-width: 800px;
  1081. .badge .icon-super {
  1082. display: block;
  1083. height: 20px;
  1084. width: 14px;
  1085. line-height: 1.5;
  1086. &:before {
  1087. content: url('../images/icons/crown.svg');
  1088. }
  1089. }
  1090. .switch-toggle {
  1091. input+label:before {
  1092. font-family: FontAwesome;
  1093. margin-right: 5px;
  1094. }
  1095. input.label0+label:before{
  1096. content: "\f05e";
  1097. }
  1098. input.label1+label:before {
  1099. content: "\f00c";
  1100. }
  1101. }
  1102. fieldset {
  1103. margin: 0 0 1rem 0;
  1104. padding: 1rem;
  1105. border-radius: $border-radius;
  1106. legend {
  1107. padding: 0 0.5rem;
  1108. margin-left: -0.5rem;
  1109. font-size: 120%;
  1110. }
  1111. fieldset {
  1112. margin: 0;
  1113. border: 0;
  1114. padding: 0.5rem 0 0 2rem;
  1115. legend {
  1116. padding: 0;
  1117. margin: 0;
  1118. }
  1119. }
  1120. }
  1121. }
  1122. .permission-container {
  1123. display: flex;
  1124. .permission-name {
  1125. flex-grow: 1;
  1126. position: relative;
  1127. overflow: hidden;
  1128. margin-right: 8px;
  1129. padding-top: 9px;
  1130. span:not(.badge) {
  1131. position: relative;
  1132. padding-right: 5px;
  1133. }
  1134. span.badge {
  1135. position: relative;
  1136. float: right;
  1137. font-size: 100%;
  1138. border-radius: 20px;
  1139. margin-right: -2px;
  1140. }
  1141. &:before {
  1142. content: "........................................................................................................................................";
  1143. height: 1px;
  1144. position: absolute;
  1145. right: 100%;
  1146. left: 0;
  1147. }
  1148. }
  1149. }
  1150. // Reports
  1151. .reports-content {
  1152. .report-output {
  1153. table, tbody, thead {
  1154. display: table;
  1155. width: 100%;
  1156. }
  1157. table {
  1158. thead {
  1159. tr {
  1160. th {
  1161. display: table-cell;
  1162. }
  1163. }
  1164. }
  1165. tbody {
  1166. tr {
  1167. td {
  1168. display: table-cell;
  1169. }
  1170. }
  1171. }
  1172. }
  1173. }
  1174. }