preset.scss 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750
  1. // Load Third Party Libraries
  2. @import "configuration/template/base";
  3. @import "template/modules/bourbon_essentials";
  4. @import "template/modules/buttons";
  5. // Logo
  6. $logo-bg: #323640 !default;
  7. $logo-link: #FFFFFF !default;
  8. // Nav
  9. $nav-bg: #3D424E !default;
  10. $nav-text: #B7B9BD !default;
  11. $nav-link: #ffffff !default;
  12. $nav-selected-bg: #323640 !default;
  13. $nav-selected-link: #ffffff !default;
  14. $nav-hover-bg: #434753 !default;
  15. $nav-hover-link: #ffffff !default;
  16. // Toolbar
  17. $toolbar-bg: #ffffff !default;
  18. $toolbar-text: #3D424E !default;
  19. // Page
  20. $page-bg: #F6F6F6 !default;
  21. $page-text: #6f7b8a !default;
  22. $page-link: #0090D9 !default;
  23. // Content
  24. $content-bg: #ffffff !default;
  25. $content-text: #6f7b8a !default;
  26. $content-link: #0090D9 !default;
  27. $content-link2: #da4b46 !default;
  28. $content-header: #414147 !default;
  29. $content-tabs-bg: #e3e3e3 !default;
  30. $content-tabs-text: #808080 !default;
  31. // Buttons
  32. $button-bg: #0090D9 !default;
  33. $button-text: #ffffff !default;
  34. // Notice
  35. $notice-bg: #06A599 !default;
  36. $notice-text: #ffffff !default;
  37. // Updates
  38. $update-bg: #77559D !default;
  39. $update-text: #ffffff !default;
  40. // Critical
  41. $critical-bg: #F45857 !default;
  42. $critical-text: #ffffff !default;
  43. // Calculated values
  44. $primary-accent: button !default;
  45. $secondary-accent: notice !default;
  46. $tertiary-accent: critical !default;
  47. // Initial values
  48. $primary-accent-bg: $notice-bg;
  49. $primary-accent-fg: $notice-text;
  50. $secondary-accent-bg: $notice-bg;
  51. $secondary-accent-fg: $notice-text;
  52. $tertiary-accent-bg: $notice-bg;
  53. $tertiary-accent-fg: $notice-text;
  54. $element-map: (
  55. button: $button-bg $button-text,
  56. notice: $notice-bg $notice-text,
  57. content: $content-bg $content-text,
  58. tabs: $content-tabs-bg $content-tabs-text,
  59. update: $update-bg $update-text,
  60. critical: $critical-bg $critical-text,
  61. page: $page-bg $page-text,
  62. nav: $nav-bg $nav-text,
  63. toolbar: $toolbar-bg $toolbar-text,
  64. logo: $logo-bg $logo-link
  65. );
  66. // Set based on configuration
  67. @each $element, $element-parts in $element-map {
  68. @if $primary-accent == $element {
  69. $primary-accent-bg: nth($element-parts, 1);
  70. $primary-accent-fg: nth($element-parts, 2);
  71. }
  72. }
  73. @each $element, $element-parts in $element-map {
  74. @if $secondary-accent == $element {
  75. $secondary-accent-bg: nth($element-parts, 1);
  76. $secondary-accent-fg: nth($element-parts, 2);
  77. }
  78. }
  79. @each $element, $element-parts in $element-map {
  80. @if $tertiary-accent == $element {
  81. $tertiary-accent-bg: nth($element-parts, 1);
  82. $tertiary-accent-fg: nth($element-parts, 2);
  83. }
  84. }
  85. $form-border: #f00;
  86. $form-field-bg: #00f;
  87. $form-field-text: #0f0;
  88. $underline: #ff0;
  89. $subtle-text: #0ff;
  90. $ir-slider-bg: #f0f;
  91. @if (lightness($content-bg) < 50) {
  92. $form-border: lighten($content-bg, 15%);
  93. $form-field-bg: lighten($content-bg, 1%);
  94. $ir-slider-bg: lighten($content-bg, 2%);
  95. $form-field-text: lighten($content-text, 5%);
  96. $underline: lighten($content-bg, 3%);
  97. $subtle-text: darken($content-text, 10%);
  98. } @else {
  99. $form-border: darken($content-bg, 10%);
  100. $form-field-bg: darken($content-bg, 1%);
  101. $ir-slider-bg: darken($content-bg, 2%);
  102. $form-field-text: darken($content-text, 5%);
  103. $underline: darken($content-bg, 3%);
  104. $subtle-text: lighten($content-text, 10%);
  105. }
  106. $form-border-width: 1px;
  107. // Core
  108. body {
  109. background: $page-bg;
  110. color: $page-text;
  111. }
  112. a {
  113. color: $page-link;
  114. &:hover {
  115. color: darken($page-link, 5%);
  116. }
  117. }
  118. .text-gray, .text-grey {
  119. color: $nav-text;
  120. }
  121. .text-update {
  122. color: $update-bg;
  123. }
  124. // Typography
  125. blockquote {
  126. border-left: 10px solid darken($content-bg, 10%);
  127. background: darken($content-bg, 2%);
  128. p {
  129. color: darken($page-text, 5%);
  130. }
  131. cite {
  132. color: $page-text;
  133. }
  134. }
  135. code {
  136. background: $code-bg;
  137. color: darken($code-text,10%);
  138. }
  139. pre {
  140. background: $pre-bg;
  141. border: 1px solid $core-border-color;
  142. code {
  143. color: $pre-text;
  144. }
  145. }
  146. hr {
  147. border-bottom: 2px solid $underline;
  148. }
  149. .label {
  150. background: $page-link;
  151. color: $white;
  152. }
  153. .badge {
  154. background: $update-bg;
  155. color: $update-text;
  156. }
  157. .light-border {
  158. border-color: $underline !important;
  159. }
  160. .subtle-text {
  161. color: $subtle-text !important;
  162. }
  163. // Tables
  164. td, thead th {
  165. border-bottom: 1px solid $underline;
  166. }
  167. tr {
  168. td {
  169. &.gpm-details {
  170. background-color: darken($content-bg,2%);
  171. }
  172. }
  173. }
  174. // Tabs
  175. .tab-bar {
  176. background: $content-tabs-bg;
  177. color: $content-tabs-text;
  178. li {
  179. &.active {
  180. span, a {
  181. background: $content-bg;
  182. color: $content-text;
  183. }
  184. }
  185. }
  186. span, a {
  187. color: $content-tabs-text;
  188. &:hover {
  189. color: lighten($content-tabs-text, 10%);
  190. background: lighten($content-tabs-bg,10%);
  191. }
  192. }
  193. }
  194. // Buttons
  195. .button {
  196. @include button-color($button-bg);
  197. &.dropdown-toggle {
  198. border-left: 1px solid darken($button-bg, 5%);
  199. }
  200. &.secondary {
  201. @include button-color(shade($button-bg, 20%));
  202. &.dropdown-toggle {
  203. border-left: 1px solid darken(shade($button-bg, 20%), 5%);
  204. }
  205. }
  206. &.danger {
  207. @include button-color($critical-bg);
  208. }
  209. }
  210. .button-group {
  211. .dropdown-menu {
  212. background-color: $button-bg;
  213. box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  214. .divider {
  215. background-color: $button-bg;
  216. }
  217. li > a {
  218. color: $button-text;
  219. &:focus, &:hover {
  220. color: $button-text;
  221. &:hover {
  222. background: tint($button-bg,15%);
  223. }
  224. }
  225. }
  226. &.language-switcher {
  227. a.active {
  228. background-color: lighten($button-bg, 10%);
  229. }
  230. }
  231. }
  232. }
  233. #admin-main .admin-block a.gumroad-button {
  234. background: $critical-bg !important;
  235. color: $critical-text !important;
  236. }
  237. #admin-login-wrapper {
  238. background: radial-gradient(circle at center, lighten($nav-bg, 10%) 40%, darken($nav-bg, 10%) 100%);
  239. }
  240. #admin-login {
  241. background: $nav-bg;
  242. &.wide form {
  243. label {
  244. color: $nav-text;
  245. }
  246. input {
  247. @include placeholder {
  248. color: rgba($nav-text, 0.6);
  249. }
  250. }
  251. }
  252. .wrapper-spacer {
  253. h3 {
  254. color: rgba(white, 0.4);
  255. border-bottom: 3px solid rgba($nav-link, 0.1);
  256. }
  257. }
  258. .instructions, p {
  259. color: rgba($nav-text,0.8);
  260. }
  261. h1 {
  262. background-color: $logo-bg;
  263. &.text-logo {
  264. color: $logo-link;
  265. }
  266. svg {
  267. path:first-child {
  268. fill: darken($logo-bg, 3%);
  269. }
  270. path:last-child {
  271. fill: rgba($logo-link, 0.9) !important;
  272. }
  273. }
  274. }
  275. h5 {
  276. color: $nav-text;
  277. }
  278. form {
  279. input {
  280. background: lighten($nav-bg, 3%);
  281. color: $nav-link;
  282. border: 1px solid shade($nav-bg, 20%);
  283. @include placeholder {
  284. @if (lightness($nav-bg) < 50) {
  285. color: shade($nav-text, 15%);
  286. } @else {
  287. color: tint($nav-text, 15%);
  288. }
  289. }
  290. }
  291. }
  292. }
  293. #admin-sidebar {
  294. background: $nav-bg;
  295. a {
  296. color: rgba($nav-link, 0.9);
  297. &:hover {
  298. color: $nav-link;
  299. }
  300. }
  301. }
  302. #admin-logo {
  303. background-color: $logo-bg;
  304. .grav-logo {
  305. path {
  306. fill: rgba($logo-link, 0.9) !important;
  307. }
  308. &:hover {
  309. path {
  310. fill: $logo-link !important;
  311. }
  312. }
  313. }
  314. a, i {
  315. color: shade($logo-link, 10%);
  316. &:hover {
  317. color: $logo-link;
  318. }
  319. }
  320. }
  321. #open-handle {
  322. background-color: darken($logo-bg, 5%);
  323. border-left: 1px solid lighten($logo-bg, 5%);
  324. i {
  325. color: rgba($logo-link, 0.6);
  326. &:hover {
  327. color: rgba($logo-link, 0.8);
  328. }
  329. }
  330. }
  331. #admin-nav-quick-tray {
  332. background: darken($nav-bg, 2%);
  333. border-bottom: 1px solid darken($nav-bg, 3%);
  334. color: $nav-link;
  335. i:hover {
  336. @if (lightness($nav-bg) < 50) {
  337. color: lighten($nav-link, 10%);
  338. } @else {
  339. color: darken($nav-link, 10%);
  340. }
  341. }
  342. }
  343. .block-userinfo {
  344. img {
  345. border: 4px solid $form-border;
  346. }
  347. }
  348. #offline-status {
  349. background-color: $update-bg;
  350. color: $update-text;
  351. }
  352. #admin-user-details, .admin-user-details {
  353. border-bottom: 1px solid lighten($nav-bg, 5%);
  354. &:hover img {
  355. box-shadow: 0px 0px 0 50px lighten($nav-bg, 3%);
  356. }
  357. .admin-user-names {
  358. h4, h5 {
  359. color: $nav-link;
  360. }
  361. }
  362. }
  363. #admin-menu {
  364. li {
  365. .badges {
  366. .count {
  367. color: $nav-link;
  368. background-color: darken($nav-bg, 5%);
  369. }
  370. .updates {
  371. color: $notice-text;
  372. background-color: $notice-bg;
  373. }
  374. }
  375. a {
  376. &:hover {
  377. background: $nav-hover-bg;
  378. color: $nav-hover-link;
  379. .fa {
  380. color: $nav-hover-link;
  381. }
  382. }
  383. }
  384. &.selected {
  385. a {
  386. background: $nav-selected-bg;
  387. color: $nav-selected-link;
  388. border-left: 9px solid shade($button-bg, 15%);
  389. .fa {
  390. color: $nav-selected-link;
  391. }
  392. }
  393. }
  394. }
  395. }
  396. #admin-main {
  397. .grav-update {
  398. background: $update-bg;
  399. color: $update-text;
  400. a.button, span.button, button.button {
  401. @include button-color(shade($update-bg, 20%), $update-text, true);
  402. }
  403. }
  404. .titlebar {
  405. background: $toolbar-bg;
  406. color: $toolbar-text;
  407. .button-bar {
  408. .button {
  409. @include button-color($button-bg, $button-text, false);
  410. }
  411. }
  412. }
  413. .lines-button {
  414. background: rgba($black, 0.1); // move this
  415. .lines, .lines:before, .lines:after {
  416. background: $toolbar-text;
  417. }
  418. }
  419. .admin-block {
  420. background: $content-bg;
  421. color: $content-text;
  422. a:not(.button) {
  423. color: $content-link;
  424. &:hover {
  425. color: darken($content-link, 5%);
  426. }
  427. }
  428. h1 {
  429. color: $content-header;
  430. border-bottom: 1px solid $underline;
  431. }
  432. //.button {
  433. // @include button-color($button-bg);
  434. //}
  435. }
  436. .danger, .success {
  437. &.button-bar {
  438. background: darken($content-bg, 3%);
  439. }
  440. }
  441. .danger {
  442. .button {
  443. @include button-color($critical-bg);
  444. }
  445. }
  446. // Notifications
  447. .content-padding {
  448. div[class*=notifications-container] {
  449. .alert.note {
  450. background: $content-bg;
  451. color: $content-text;
  452. &.alert {
  453. border-bottom: 2px solid darken($content-bg, 5%);
  454. }
  455. a:not(.button) {
  456. color: $content-link;
  457. &:hover {
  458. color: darken($content-link, 5%);
  459. }
  460. }
  461. }
  462. .alert.warning {
  463. background: $critical_bg;
  464. color: $critical_text;
  465. &.alert {
  466. border-bottom: 2px solid darken($critical_bg, 5%);
  467. }
  468. a {
  469. color: $critical_text;
  470. &:hover {
  471. color: lighten($critical_text, 10%);
  472. }
  473. }
  474. }
  475. }
  476. }
  477. #notifications {
  478. .badge.alert {
  479. &.note {
  480. background: $content_link;
  481. color: $content_bg;
  482. }
  483. &.warning {
  484. background: $critical_bg;
  485. color: $critical_text;
  486. }
  487. }
  488. }
  489. }
  490. .sidebar-mobile-open {
  491. #admin-main {
  492. .lines-button {
  493. .lines, .lines:before, .lines:after {
  494. background: $logo-link;
  495. }
  496. }
  497. }
  498. }
  499. #admin-dashboard {
  500. .admin-block {
  501. li {
  502. border-bottom: 1px solid $underline;
  503. }
  504. }
  505. .dashboard-item {
  506. }
  507. .primary-accent {
  508. @include linear-gradient(darken($primary-accent-bg, 7%), $primary-accent-bg);
  509. h1 {
  510. color: $white;
  511. border-bottom: 0;
  512. }
  513. p {
  514. color: rgba($primary-accent-fg, 0.95);
  515. }
  516. .stat {
  517. i {
  518. color: rgba($primary-accent-fg, 0.75);
  519. }
  520. }
  521. .numeric {
  522. em {
  523. color: rgba($primary-accent-fg, .85);
  524. }
  525. }
  526. .chart-loader {
  527. color: shade($primary-accent-bg, 20%);
  528. }
  529. }
  530. .secondary-accent {
  531. @include linear-gradient(darken($secondary-accent-bg, 7%), $secondary-accent-bg);
  532. h1 {
  533. color: $white;
  534. border-bottom: 0;
  535. }
  536. p {
  537. color: rgba($secondary-accent-fg, 0.95);
  538. }
  539. .stat {
  540. i {
  541. color: rgba($secondary-accent-fg, 0.75);
  542. }
  543. }
  544. .numeric {
  545. em {
  546. color: rgba($secondary-accent-fg, .85);
  547. }
  548. }
  549. .chart-loader {
  550. color: shade($secondary-accent-bg, 20%);
  551. }
  552. }
  553. }
  554. .sidebar-mobile-open {
  555. #admin-main {
  556. .lines-button {
  557. .lines, .lines:before, .lines:after {
  558. background: $logo-link;
  559. }
  560. }
  561. }
  562. }
  563. // Forms
  564. form {
  565. h1, h3 {
  566. border-bottom: 3px solid $underline;
  567. }
  568. h1, h2, h3, h4, h5 {
  569. color: $content-header;
  570. }
  571. .note {
  572. color: $critical-bg;
  573. }
  574. .required {
  575. color: $content-link2;
  576. }
  577. .overlay {
  578. background: darken($content-bg, 2%);
  579. pre {
  580. background: lighten($pre-bg, 3%);
  581. }
  582. }
  583. .form-border {
  584. border: 1px solid $form-border;
  585. }
  586. .form-field-colors {
  587. background-color: $form-field-bg;
  588. color: $form-field-text;
  589. }
  590. .form-select-wrapper, .selectize-control.single .selectize-input {
  591. &:after {
  592. color: lighten($content-text, 15%);
  593. }
  594. }
  595. .selectize-control {
  596. &.single, &.multi {
  597. .selectize-input {
  598. &, &.full, &.items, &.active {
  599. color: $form-field-text;
  600. border-color: $form-border;
  601. background-color: $form-field-bg;
  602. }
  603. input {
  604. color: $form-field-text;
  605. }
  606. a.remove {
  607. color: $page-bg !important;
  608. }
  609. }
  610. }
  611. }
  612. .form-input-wrapper {
  613. .form-input-addon {
  614. border: 1px solid $form-border;
  615. background: $content-bg;
  616. &.copy-to-clipboard {
  617. background: $button-bg;
  618. color: $button-text;
  619. &:hover {
  620. background: darken($button-bg, 5%);
  621. }
  622. }
  623. }
  624. }
  625. .selectize-control.single.plugin-remove_button .selectize-input,
  626. .selectize-control.multi .selectize-input {
  627. .item, .remove-single {
  628. color: $content-bg !important;
  629. background: $content-text;
  630. &.active {
  631. background: $notice-bg;
  632. color: $notice-text;
  633. }
  634. }
  635. }
  636. select {
  637. border: $form-border-width solid $form-border;
  638. background: $form-field-bg;
  639. color: $form-field-text;
  640. }
  641. input[type=text],
  642. input[type=password],
  643. input[type=email],
  644. input[type=date],
  645. input[type=tel],
  646. input[type=time],
  647. input[type=week],
  648. input[type=month],
  649. input[type=number],
  650. input[type=color],
  651. input[type=url] {
  652. border: $form-border-width solid $form-border;
  653. background: $form-field-bg;
  654. color: $form-field-text;
  655. }
  656. input[readonly=readonly] {
  657. background: $content-bg;
  658. }
  659. textarea {
  660. color: $form-field-text;
  661. border: $form-border-width solid $form-border;
  662. background: $form-field-bg;
  663. }
  664. .form-frontmatter-wrapper {
  665. border: $form-border-width solid $form-border;
  666. }
  667. .button-bar {
  668. background: lighten($form-border,7%);
  669. }
  670. .checkboxes {
  671. label:before {
  672. background: $form-field-bg;
  673. border: $form-border-width solid $form-border;
  674. }
  675. }
  676. input, textarea, select {
  677. @include placeholder {
  678. @if (lightness($form-field-bg) < 50) {
  679. color: darken($form-field-text, 25%);
  680. } @else {
  681. color: lighten($form-field-text, 25%);
  682. }
  683. }
  684. }
  685. .g-colorpicker {
  686. width: 230px;
  687. .g-colorpicker-preview-wrap {
  688. border-color: $form-border;
  689. height: 43px;
  690. width: 43px;
  691. }
  692. input {
  693. height: 43px;
  694. }
  695. }
  696. .form-input-file {
  697. border: 2px dashed $form-border;
  698. p {
  699. color: $form-field-text;
  700. }
  701. ul {
  702. color: $primary-accent-fg;
  703. background: $primary-accent-bg;
  704. }
  705. }
  706. .file-thumbnail-remove {
  707. background: $button-bg;
  708. .fa {
  709. color: $button-text;
  710. }
  711. &:hover {
  712. background: $button-text;
  713. .fa {
  714. color: $button-bg;
  715. }
  716. }
  717. }
  718. // Range
  719. input[type=range] {
  720. &::-webkit-slider-runnable-track {
  721. background: $ir-slider-bg;
  722. border: 1px solid $form-border;
  723. }
  724. &::-webkit-slider-thumb {
  725. border: 1px solid $form-border;
  726. background: $button-bg;
  727. }
  728. &:focus::-webkit-slider-runnable-track {
  729. background: $ir-slider-bg;
  730. }
  731. &::-moz-range-track {
  732. background: $ir-slider-bg;
  733. border: 1px solid $form-border;
  734. }
  735. &::-moz-range-progress {
  736. background: $ir-slider-bg;
  737. }
  738. &::-moz-range-thumb {
  739. border: 1px solid $form-border;
  740. background: $button-bg;
  741. }
  742. &::-ms-fill-lower, &::-ms-fill-upper {
  743. background: $ir-slider-bg;
  744. border: 1px solid $form-border;
  745. }
  746. &::-ms-thumb {
  747. border: 1px solid $form-border;
  748. background: $button-bg;
  749. }
  750. &:focus::-ms-fill-lower, &:focus::-ms-fill-upper {
  751. background: $ir-slider-bg;
  752. }
  753. }
  754. }
  755. // Display RESET
  756. form {
  757. .form-display-wrapper {
  758. table {
  759. border: 1px solid $form-border;
  760. th {
  761. background-color: lighten($form-border, 6%);
  762. border-bottom: 3px solid $form-border;
  763. border-right: 1px solid $form-border;
  764. }
  765. td {
  766. border-right: 1px solid $form-border;
  767. }
  768. tr {
  769. border-bottom: 1px solid $form-border;
  770. }
  771. }
  772. }
  773. }
  774. .grav-editor-resizer {
  775. background-color: rgba(213,213,213,1);
  776. @include linear-gradient(top, rgba(213,213,213,1) 0%, rgba(213,213,213,1) 20%, rgba(237,237,237,1) 20%, rgba(237,237,237,1) 40%, rgba(213,213,213,1) 40%, rgba(213,213,213,1) 60%, rgba(237,237,237,1) 60%, rgba(237,237,237,1) 80%, rgba(213,213,213,1) 80%, rgba(213,213,213,1) 100%);
  777. }
  778. .form-order-wrapper {
  779. ul.orderable {
  780. li {
  781. border: 1px solid $form-border;
  782. background: lighten($content-bg, 2%);
  783. color: $content-text;
  784. &.drag-handle {
  785. background: $form-field-bg;
  786. color: $form-field-text;
  787. }
  788. &[data-active-id] {
  789. border-color: $content-link;
  790. }
  791. }
  792. &.disabled li {
  793. opacity: 0.7;
  794. }
  795. }
  796. }
  797. .form-list-wrapper {
  798. ul[data-collection-holder] {
  799. > li {
  800. border: 1px solid $form-border;
  801. background: lighten($content-bg, 4%);
  802. color: lighten($content-text, 10%);
  803. .item-actions {
  804. color: darken($content-text, 10%);
  805. }
  806. }
  807. }
  808. .collection-sort {
  809. background: darken($content-bg, 2%);
  810. border-right: 1px solid $form-border;
  811. }
  812. }
  813. .form-fieldset {
  814. background-color: darken($content-bg, 1%);
  815. border: 1px solid $form-border;
  816. }
  817. .form-fieldset--label {
  818. background-color: darken($content-bg, 4%);
  819. &:hover,
  820. .form-fieldset input:checked + & {
  821. background-color: darken($content-bg, 6%);
  822. }
  823. }
  824. #admin-main {
  825. #admin-topbar {
  826. background: $content-tabs-bg;
  827. }
  828. .form-tabs {
  829. background: $content-tabs-bg;
  830. &.side-tabs {
  831. > .tabs-nav {
  832. background: $content-bg;
  833. a {
  834. color: $content-link;
  835. cursor: pointer;
  836. &:hover {
  837. background: $page-bg;
  838. }
  839. &.active {
  840. background: lighten($content-tabs-bg, 5%);
  841. color: $content-tabs-text;
  842. }
  843. }
  844. }
  845. > .tabs-content {
  846. box-shadow: -20px 0 50px -40px rgba(#000, 0.3);
  847. }
  848. }
  849. .tabs-nav {
  850. a {
  851. color: $content-tabs-text;
  852. &:hover {
  853. color: darken($content-tabs-text, 5%);
  854. background: darken($content-tabs-bg,5%);
  855. }
  856. &.active {
  857. background: $content-bg;
  858. color: $content-text;
  859. }
  860. }
  861. }
  862. &.subtle {
  863. background: $content-bg;
  864. .tabs-nav {
  865. background: linear-gradient(to bottom, rgba($content-bg,0), shade($content-bg,3%));
  866. }
  867. a {
  868. color: shade($content-text, 10%);
  869. border: 0 solid transparent;
  870. &:hover {
  871. color: shade($content-text, 20%);
  872. background: linear-gradient(to bottom, rgba($content-bg,0), shade($content-bg,7%));
  873. }
  874. border-bottom: 1px solid $form-border;
  875. &.active {
  876. border-top: 1px solid $form-border;
  877. border-left: 1px solid $form-border;
  878. border-right: 1px solid $form-border;
  879. border-bottom: 0;
  880. &:hover {
  881. background: $content-bg;
  882. }
  883. &:first-child {
  884. border-left: 0;
  885. }
  886. &:last-child {
  887. border-right: 0;
  888. }
  889. }
  890. }
  891. }
  892. .tabs-content {
  893. background: $content-bg;
  894. }
  895. }
  896. }
  897. .switch-grav {
  898. background-color: $form-field-bg;
  899. border: $form-border-width solid $form-border;
  900. label {
  901. color: $content-text;
  902. transition: background-color 0.5s ease;
  903. }
  904. &.switch-toggle input.highlight:checked + label {
  905. background: $button-bg;
  906. color: $button-text;
  907. }
  908. &.switch-toggle input:checked + label {
  909. color: $content-bg;
  910. background: $content-text;
  911. }
  912. }
  913. // Toaster
  914. .toast {
  915. background-color: #030303;
  916. }
  917. .toast-success {
  918. background-color: $update-bg;
  919. .button {
  920. background: lighten($update-bg, 5%);
  921. @include button-color(lighten($update-bg, 10%));
  922. }
  923. }
  924. .toast-error {
  925. background-color: $critical-bg;
  926. .button {
  927. background-color: darken($critical-bg, 10);
  928. @include button-color(darken($critical-bg, 20));
  929. }
  930. }
  931. .toast-info {
  932. background-color: $notice-bg;
  933. .button {
  934. background-color: darken($notice-bg, 10);
  935. @include button-color(darken($notice-bg, 20));
  936. }
  937. }
  938. // Info
  939. .info {
  940. background: $update-bg;
  941. color: $update-text;
  942. a {
  943. color: darken($update-text, 10%);
  944. &:hover {
  945. color: $update-text;
  946. }
  947. }
  948. a.button, span.button, button.button {
  949. @include button-color(shade($update-bg, 20%), $update-text, true);
  950. }
  951. }
  952. .info-reverse {
  953. color: $update-bg;
  954. }
  955. .notice, .note {
  956. background: $notice-bg;
  957. color: $notice-text;
  958. a {
  959. color: darken($notice-text, 10%);
  960. &:hover {
  961. color: $notice-text;
  962. }
  963. }
  964. a.button, span.button, button.button {
  965. @include button-color(shade($notice-bg, 20%), $notice-text, true);
  966. }
  967. }
  968. .notice-reverse, .note-reverse {
  969. color: $notice-bg;
  970. }
  971. .error, .warning {
  972. background: $critical-bg;
  973. color: $critical-text;
  974. a {
  975. color: darken($critical-text, 10%);
  976. &:hover {
  977. color: $critical-text;
  978. }
  979. }
  980. a.button, span.button, button.button {
  981. @include button-color(shade($critical-bg, 20%), $critical-text, true);
  982. }
  983. }
  984. .error-reverse, .warning-reverse {
  985. color: $critical-bg;
  986. }
  987. .primary-accent {
  988. background: darken($primary-accent-bg, 5%);
  989. color: $primary-accent-fg;
  990. .button-bar {
  991. background: darken($primary-accent-bg, 7%);
  992. }
  993. .button {
  994. @include button-color($primary-accent-bg, $primary-accent-fg);
  995. }
  996. }
  997. .secondary-accent {
  998. background: darken($secondary-accent-bg, 5%);
  999. color: $secondary-accent-fg;
  1000. .button-bar {
  1001. background: darken($secondary-accent-bg, 7%);
  1002. }
  1003. .button {
  1004. @include button-color($secondary-accent-bg, $secondary-accent-fg);
  1005. }
  1006. .button-group {
  1007. .dropdown-menu {
  1008. background: $secondary-accent-bg;
  1009. li {
  1010. a {
  1011. &:hover {
  1012. background: tint($secondary-accent-bg,15%);
  1013. }
  1014. }
  1015. }
  1016. }
  1017. }
  1018. }
  1019. .card-item {
  1020. border: 1px solid darken($content-bg, 5%);
  1021. background: $white;
  1022. .gpm-actions {
  1023. background: darken($content-bg, 2%);
  1024. }
  1025. &.active-theme {
  1026. border: 1px solid $notice-bg;
  1027. .gpm-actions {
  1028. background: $notice-bg;
  1029. color: $notice-text;
  1030. }
  1031. }
  1032. }
  1033. .user-details {
  1034. h2 {
  1035. color: $content-header;
  1036. span {
  1037. color: $content-text;
  1038. }
  1039. }
  1040. .gravatar {
  1041. color: lighten($content-text,20%);
  1042. a {
  1043. color: $content-text !important;
  1044. }
  1045. }
  1046. }
  1047. #admin-main .grav-editor-toolbar .dropdown-menu {
  1048. box-shadow: 0 3px 6px rgba(0, 0, 0, .075);
  1049. border: 1px solid $form-border;
  1050. background: lighten($content-bg, 5%);
  1051. }
  1052. #admin-main .grav-editor-toolbar {
  1053. border: 1px solid $form-border;
  1054. border-top-right-radius: $border-radius;
  1055. border-top-left-radius: $border-radius;
  1056. background: lighten($content-bg, 5%);
  1057. ul {
  1058. a {
  1059. color: $content-text;
  1060. &:hover, &:focus {
  1061. background: darken($content-bg, 3%);
  1062. color: $form-field-text;
  1063. border-top: 1px solid $form-border;
  1064. }
  1065. }
  1066. .editor-active {
  1067. a {
  1068. cursor: auto;
  1069. background: lighten($content-bg, 8%);
  1070. border-top: 1px solid $form-border;
  1071. border-left: 1px solid $form-border;
  1072. border-right: 1px solid $form-border;
  1073. &:hover {
  1074. background: darken($content-bg, 3%);
  1075. color: $form-field-text;
  1076. border-top: 0;
  1077. border-bottom: 1px solid $form-border;
  1078. }
  1079. }
  1080. &:last-child a, &:last-child a:hover {
  1081. border-right: 1px solid transparent;
  1082. }
  1083. }
  1084. .button-disabled a {
  1085. color: rgba($content-text, 0.5);
  1086. &:hover, &:focus {
  1087. background: lighten($content-bg, 5%);
  1088. color: $content-text;
  1089. border-left: 1px solid transparent;
  1090. border-right: 1px solid transparent;
  1091. }
  1092. }
  1093. }
  1094. }
  1095. #admin-main .grav-editor-hide-toolbar + div {
  1096. border: 1px solid $form-border;
  1097. }
  1098. .grav-editor-content, .grav-editor-preview {
  1099. border: 1px solid $form-border;
  1100. border-top: 0;
  1101. }
  1102. .grav-mdeditor-content {
  1103. border: 1px solid $form-border;
  1104. }
  1105. [data-mode=split] {
  1106. .grav-mdeditor-code {
  1107. border-right: 1px solid $form-border;
  1108. }
  1109. }
  1110. #admin-main {
  1111. .grav-editor-preview {
  1112. h1, h2, h3, h4, h5, h6 {
  1113. color: darken($content-text, 10%);
  1114. }
  1115. }
  1116. }
  1117. .primary-accent {
  1118. .ct-chart {
  1119. .ct-series {
  1120. &.ct-series-a {
  1121. .ct-bar {
  1122. stroke: rgba($primary-accent-fg, 0.85) !important;
  1123. }
  1124. .ct-slice-donut {
  1125. stroke: $primary-accent-fg !important;
  1126. }
  1127. }
  1128. &.ct-series-b {
  1129. .ct-slice-donut {
  1130. stroke: rgba($primary-accent-fg, 0.2) !important;
  1131. }
  1132. }
  1133. }
  1134. }
  1135. }
  1136. .secondary-accent {
  1137. .ct-chart {
  1138. .ct-series {
  1139. &.ct-series-a {
  1140. .ct-bar {
  1141. stroke: rgba($secondary-accent-fg, 0.85) !important;
  1142. }
  1143. .ct-slice-donut {
  1144. stroke: $secondary-accent-fg !important;
  1145. }
  1146. }
  1147. &.ct-series-b {
  1148. .ct-slice-donut {
  1149. stroke: rgba($secondary-accent-fg, 0.2) !important;
  1150. }
  1151. }
  1152. }
  1153. }
  1154. }
  1155. .dropzone {
  1156. background: $form-field-bg;
  1157. border: 1px $form-border solid;
  1158. &.dz-drag-hover {
  1159. border-color: darken($form-border, 10%);
  1160. background: rgba(0,0,0,0.04);
  1161. }
  1162. .dz-preview {
  1163. border:1px solid darken($content-bg,5%);
  1164. .dz-success-mark, .dz-error-mark {
  1165. color: $white;
  1166. }
  1167. .dz-success-mark {
  1168. background-color: lighten($button-bg,10%);
  1169. }
  1170. .dz-error-mark {
  1171. background-color: $critical-bg;
  1172. }
  1173. .dz-progress {
  1174. background: #d7d7d7;
  1175. .dz-upload {
  1176. background-color: lighten($button-bg,10%);
  1177. }
  1178. }
  1179. .dz-error-message {
  1180. background: lighten($content-bg,3%);
  1181. color: $critical-bg;
  1182. }
  1183. &:hover {
  1184. .dz-details {
  1185. box-shadow: 0px 0px 20px -5px rgba(0,0,0,0.4);
  1186. }
  1187. }
  1188. .dz-remove, .dz-unset, .dz-view, .dz-insert, .dz-metadata {
  1189. background: darken($content-bg,7%);
  1190. &:hover {
  1191. &:after {
  1192. color: $content-link;
  1193. }
  1194. }
  1195. &:after {
  1196. color: $content-text;
  1197. }
  1198. }
  1199. .dz-remove {
  1200. &:hover {
  1201. &:after {
  1202. color: $critical-bg;
  1203. }
  1204. }
  1205. }
  1206. }
  1207. &.dz-clickable {
  1208. .dz-message, .dz-message span {
  1209. color: lighten($content-text,30%);
  1210. }
  1211. }
  1212. }
  1213. .gpm {
  1214. > table > tbody {
  1215. > tr {
  1216. border-bottom: 1px solid $underline;
  1217. &:hover {
  1218. background: lighten($content-bg, 2%);
  1219. }
  1220. }
  1221. }
  1222. .gpm-name {
  1223. color: lighten($content-text, 15%);
  1224. }
  1225. .gpm-version {
  1226. color: lighten($content-text, 10%);
  1227. }
  1228. .gpm-ribbon, .badge.update {
  1229. background: $update-bg;
  1230. a, & {
  1231. color: $update-text !important;
  1232. &:hover {
  1233. background: shade($update-bg, 15%);
  1234. }
  1235. }
  1236. }
  1237. .gpm-update {
  1238. .gpm-name {
  1239. color: $button-bg;
  1240. }
  1241. }
  1242. .gpm-item-info {
  1243. border-bottom: 3px solid $underline;
  1244. .gpm-item-icon {
  1245. color: darken($content-bg, 2%);
  1246. }
  1247. }
  1248. .gpm-actions {
  1249. .disabled {
  1250. color: lighten($content-text, 10%);
  1251. }
  1252. }
  1253. .gpm-testing {
  1254. background-color: $critical-bg;
  1255. color: $critical-text;
  1256. }
  1257. }
  1258. .pages-list {
  1259. border-top: 1px solid $underline;
  1260. .row {
  1261. border-bottom: 1px solid $underline;
  1262. &:hover {
  1263. background: lighten($content-bg, 2%);
  1264. }
  1265. p.page-route {
  1266. color: $content-text;
  1267. .spacer {
  1268. color: $content-text;
  1269. }
  1270. }
  1271. .badge.lang {
  1272. background-color: $content-tabs-bg;
  1273. color: $content-tabs-text;
  1274. }
  1275. .badge.lang.info {
  1276. background-color: $update-bg;
  1277. color: $update-text;
  1278. }
  1279. }
  1280. .page-home {
  1281. color: $subtle-text;
  1282. }
  1283. .page-info {
  1284. color: $subtle-text;
  1285. }
  1286. }
  1287. #admin-topbar {
  1288. #admin-lang-toggle {
  1289. z-index: 3;
  1290. button {
  1291. @include button-color($update-bg);
  1292. }
  1293. .dropdown-menu {
  1294. background: $update-bg;
  1295. }
  1296. }
  1297. .switch-grav {
  1298. background-color: lighten($content-tabs-bg,10%);
  1299. }
  1300. .switch-toggle {
  1301. input:checked + label {
  1302. color: $white;
  1303. }
  1304. input + label {
  1305. color: $content-tabs-text;
  1306. }
  1307. input.highlight:checked + label {
  1308. background: $button-bg;
  1309. }
  1310. }
  1311. }
  1312. body .selectize-dropdown .optgroup-header {
  1313. color: $black;
  1314. border-bottom: 1px solid #eee;
  1315. background-color: #fafafa;
  1316. }
  1317. body .bootstrap-datetimepicker-widget {
  1318. &.dropdown-menu {
  1319. border-color: $form-border;
  1320. }
  1321. table {
  1322. td span:hover, th:hover, td.day:hover {
  1323. background: darken($content-bg, 5%) !important;
  1324. }
  1325. .active {
  1326. color: $content-link !important;
  1327. &:hover {
  1328. color: darken($content-link, 10%);
  1329. }
  1330. }
  1331. }
  1332. }
  1333. #phpinfo {
  1334. th {
  1335. background: $form-field-bg;
  1336. }
  1337. td {
  1338. word-wrap: break-word;
  1339. &:first-child {
  1340. color: $button-bg;
  1341. }
  1342. }
  1343. }
  1344. .remodal {
  1345. background: $content-bg;
  1346. color: $content-text;
  1347. // box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  1348. }
  1349. .remodal-close {
  1350. color: $content-text;
  1351. }
  1352. .remodal-close:hover,
  1353. .remodal-close:focus {
  1354. color: darken($content-text, 20%);
  1355. }
  1356. .gm-scrollbar .thumb {
  1357. @if (lightness($page-bg) < 50) {
  1358. background-color: rgba($white, 0.2);
  1359. &:hover, &:active {
  1360. background-color: rgba($white, 0.3);
  1361. }
  1362. } @else {
  1363. background-color: rgba($black, 0.2);
  1364. &:hover, &:active {
  1365. background-color: rgba($black, 0.3);
  1366. }
  1367. }
  1368. }
  1369. #page-filtering {
  1370. .page-shortcuts {
  1371. .button {
  1372. @include button-color(rgba(darken($content-text,5%), 0.5));
  1373. }
  1374. }
  1375. }
  1376. #admin-sidebar .gm-scrollbar .thumb {
  1377. @if (lightness($nav-bg) < 50) {
  1378. background-color: rgba($white, 0.2);
  1379. &:hover, &:active {
  1380. background-color: rgba($white, 0.3);
  1381. }
  1382. } @else {
  1383. background-color: rgba($black, 0.2);
  1384. &:hover, &:active {
  1385. background-color: rgba($black, 0.3);
  1386. }
  1387. }
  1388. }
  1389. .preview-wrapper {
  1390. iframe {
  1391. @if (lightness($page-bg) < 50) {
  1392. border: 1px solid lighten($page-bg, 3%)
  1393. } @else {
  1394. border: 1px solid darken($page-bg, 3%)
  1395. }
  1396. }
  1397. }
  1398. #backups-stats {
  1399. .backups-usage-wrapper {
  1400. > div {
  1401. background: linear-gradient(-90deg, darken($primary-accent-bg, 10%) 0, darken($primary-accent-bg, 15%) 100%);
  1402. &.full {
  1403. background: linear-gradient(-90deg, darken($critical-bg, 5%) 0, darken($critical-bg, 35%) 100%);
  1404. }
  1405. }
  1406. }
  1407. }
  1408. // Log Viewer
  1409. .logs-output {
  1410. table.noflex {
  1411. td.level .badge {
  1412. &.error, &.critical, &.alert {
  1413. background-color: #DC3023;
  1414. color: #fff;
  1415. }
  1416. &.notice, &.warning {
  1417. background-color: #E08A1E;
  1418. color: #fff;
  1419. }
  1420. &.debug {
  1421. background-color: #26A65B;
  1422. color: #fff;
  1423. }
  1424. &.info {
  1425. background-color: #22A7F0;
  1426. color: #fff;
  1427. }
  1428. &.emergency {
  1429. background-color: #8E44AD;
  1430. color: #fff;
  1431. }
  1432. }
  1433. }
  1434. }
  1435. .permission-container {
  1436. overflow: hidden;
  1437. }
  1438. // Range-field
  1439. @import "template/modules/input-range";