preset.scss 33 KB

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