preset.scss 34 KB

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