theme.styl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. /* Admin theme.styl CSS */
  2. $availableThemeColors = 'theme-default' $defaultColor, 'theme-blue' $blueColor, 'theme-green' $greenColor, 'theme-brown' $brownColor, 'theme-chocolate' $chocolateColor, 'theme-teal' $tealColor, 'theme-aqua' $aquaColor, 'theme-purple' $purpleColor, 'theme-red' $redColor
  3. $navbarWidth = 180px
  4. #app
  5. position: absolute
  6. top: 0
  7. bottom: 0
  8. left: 0
  9. right: 0
  10. .site-name
  11. font-size: 1.65em
  12. line-height: 1em
  13. font-weight: $normalFont
  14. color: #C4C4C4
  15. letter-spacing: -0.06em
  16. word-spacing: 0em
  17. white-space: nowrap
  18. a
  19. color: $lightGrey
  20. // b, strong
  21. // color: $primaryColor
  22. // loop through all available theme colors
  23. for c in $availableThemeColors
  24. &.{c[0]}
  25. b, strong
  26. color: c[1]
  27. span.label
  28. font-weight: $normalFont
  29. color: $lightGrey
  30. .filter-box
  31. position: absolute
  32. top: 0
  33. right: 0
  34. width: 35%
  35. background: #fff
  36. z-index: 10
  37. .filter-input
  38. display: block
  39. width: 100%
  40. color: $lightGrey
  41. background: #fff
  42. font-size: 1.5em
  43. font-weight: $normalFont
  44. padding: 5px 40px 5px 10px
  45. margin: 0
  46. border: 1px solid $faintGrey
  47. outline: none
  48. .icon
  49. position: absolute
  50. top: 8px
  51. right: 10px
  52. color: $lightGrey
  53. font-size: 1.5em
  54. line-height: 1em
  55. .clear-filter
  56. display: none
  57. position: absolute
  58. top: 0
  59. right: 0
  60. width: 22px
  61. height: 20px
  62. background: $alertColor
  63. padding: 0
  64. margin: 10px
  65. color: white
  66. text-align: center
  67. line-height: 1em
  68. cursor: pointer
  69. &.active
  70. display: block
  71. .selected-site
  72. position: relative
  73. padding: 10px 40px 10px 10px
  74. border: 1px solid $faintGrey
  75. border-top: 0
  76. line-height: 1em
  77. cursor: pointer
  78. -webkit-user-select: none
  79. .icon
  80. top: 10px
  81. html.no-touch &:hover
  82. html.touch &:active
  83. background: lighten($faintGrey, 50%)
  84. ul.site-selector
  85. display: none
  86. list-style-type: none
  87. margin: 0
  88. padding: 0
  89. background: #fff
  90. border: 1px solid $faintGrey
  91. border-top: 0
  92. max-height: 500px
  93. overflow-y: scroll
  94. overflow-x: hidden
  95. -webkit-overflow-scrolling: touch
  96. -webkit-user-select: none
  97. li
  98. padding: 10px 10px
  99. cursor: pointer
  100. html.no-touch &:hover
  101. html.touch &:active
  102. background: lighten($faintGrey, 50%)
  103. &.selected
  104. opacity: 0.5
  105. .filter-sort
  106. position: relative
  107. padding: 10px 40px 10px 10px
  108. border: 1px solid $faintGrey
  109. border-top: 0
  110. line-height: 1em
  111. cursor: pointer
  112. -webkit-user-select: none
  113. background: #f9f9f9
  114. .main.navbar
  115. position: absolute
  116. top: 0
  117. left: 0
  118. bottom: 0
  119. width: $navbarWidth
  120. padding: 0
  121. margin: 0
  122. background: $primaryColor
  123. box-shadow(-4px 4px 0 rgba(0, 0, 0, 0.1))
  124. overflow-y: scroll
  125. overflow-x: hidden
  126. -webkit-overflow-scrolling: touch
  127. -webkit-user-select: none
  128. transition(0.3s, all)
  129. z-index: 0
  130. .app-logo
  131. padding: 16px 18px
  132. margin-bottom: 20px
  133. font-size: 4.25em
  134. line-height: 1em
  135. font-weight: $boldFont
  136. color: #fff
  137. letter-spacing: -0.07em
  138. word-spacing: 0em
  139. white-space: nowrap
  140. // text-shadow: 0px -1px 0 rgba(0,0,0,0.2)
  141. a
  142. color: #fff
  143. > form.login
  144. display: none
  145. padding: 20px 30px
  146. // text-shadow: 0px -1px 0 rgba(0,0,0,0.2)
  147. > input
  148. display: inline-block
  149. width: 140px
  150. margin: 10px
  151. vertical-align: middle
  152. color: #fff
  153. font-weight: $boldFont
  154. font-size: 1.2em
  155. ::-webkit-input-placeholder
  156. color: lighten($primaryColor, 1%)
  157. font-weight: $normalFont
  158. &.button
  159. background: darken($primaryColor, 5%)
  160. html.no-touch &:hover
  161. html.touch &:active
  162. background: darken($primaryColor, 10%)
  163. > ul
  164. list-style-type: none
  165. padding: 0
  166. margin: 0
  167. > li
  168. padding: 0
  169. a
  170. display: block
  171. padding: 10px 20px
  172. font-weight: $boldFont
  173. color: #fff
  174. html.no-touch &:hover
  175. html.touch &:active
  176. background: darken($primaryColor, 5%)
  177. &.active
  178. background: darken($primaryColor, 10%)
  179. .icon
  180. margin-right: 0.5em
  181. &.seperator
  182. margin: 0.5em 0
  183. border-bottom: 1px solid rgba(255,255,255,0.2)
  184. &.show-login
  185. top: 30%
  186. left: 26%
  187. right: 26%
  188. bottom: auto
  189. width: initial
  190. padding: 0 10px
  191. z-index: 200
  192. .app-logo
  193. margin: 30px
  194. padding: 0
  195. .offline
  196. top: 32px
  197. right: 0
  198. left: auto
  199. > form.login
  200. display: block
  201. > ul
  202. display: none
  203. .user-greeting
  204. position: absolute
  205. top: 0
  206. left: -($navbarWidth)
  207. width: $navbarWidth
  208. padding: 16px 18px
  209. color: #fff
  210. background: $primaryColor
  211. transition(0.6s, left)
  212. strong
  213. display: block
  214. font-size: 2.5em
  215. border-bottom: 5px solid white
  216. padding-bottom: 0.3em
  217. letter-spacing: -0.07em
  218. word-spacing: 0em
  219. white-space: nowrap
  220. &.show
  221. left: 0
  222. .offline
  223. display: none
  224. position: absolute
  225. top: 22px
  226. left: 0
  227. width: $navbarWidth
  228. font-size: 2em
  229. line-height: 2em
  230. font-weight: $boldFont
  231. text-transform: uppercase
  232. text-align: center
  233. color: #fff
  234. background: $alertColor
  235. .main.stack
  236. position: absolute
  237. top: 0
  238. left: $navbarWidth
  239. right: 0
  240. bottom: 0
  241. min-width: 800px
  242. overflow: hidden
  243. .panel
  244. position: absolute
  245. top: 0
  246. bottom: 0
  247. left: 0
  248. right: 0
  249. overflow: hidden
  250. > .panel
  251. background: $faintGrey
  252. overflow-y: scroll
  253. overflow-x: hidden
  254. -webkit-overflow-scrolling: touch
  255. .content
  256. position: relative
  257. float: left
  258. width: 65%
  259. min-height: 100%
  260. padding: 20px 3% 40px 3%
  261. background: #fff
  262. .sidebar
  263. float: right
  264. width: 35%
  265. padding: 20px 3%
  266. .top-spacer
  267. display: block
  268. height: 4em
  269. .buttons
  270. position: fixed
  271. width: 26%
  272. margin-top: -21px
  273. margin-left: -5px
  274. padding-top: 20px
  275. padding-bottom: 10px
  276. border-bottom: 1px solid #fff
  277. background: #F3F3F3
  278. box-shadow: 0 5px 0 rgba(0,0,0,0.05)
  279. z-index: 10
  280. button, .button
  281. margin: 0 10px 10px 0
  282. padding: 10px 25px
  283. &:last-of-type
  284. margin-right: 0
  285. .delete-button
  286. display: inline-block
  287. float: right
  288. height: 44px
  289. width: 44px
  290. background: #ddd
  291. line-height: 44px
  292. text-align: center
  293. cursor: pointer
  294. html.no-touch &:hover
  295. html.touch &:active
  296. color: #fff
  297. background: $alertColor
  298. input[type='text'],
  299. input[type='search'],
  300. textarea,
  301. select
  302. border-color: #d3d3d3
  303. ::-webkit-input-placeholder
  304. color: #d3d3d3
  305. &.form
  306. z-index: 20
  307. h1
  308. margin: 0 0 0.5em -0.05em
  309. .icon
  310. color: $lightGrey
  311. font-size: 0.85em
  312. line-height: 1em
  313. .new
  314. font-weight: $heavyFont
  315. line-height: 1em
  316. .count, .status
  317. float: right
  318. color: $lightGrey
  319. font-size: 0.5em
  320. font-weight: 300
  321. margin-left: 0.5em
  322. white-space: nowrap
  323. .count
  324. cursor: pointer
  325. .item-title
  326. color: $primaryColor
  327. ul.list
  328. list-style-type: none
  329. margin: 0
  330. padding: 0
  331. border-top: 1px dotted $faintGrey
  332. clearfix()
  333. > li
  334. border-bottom: 1px dotted $faintGrey
  335. padding: 1em 0
  336. clearfix()
  337. > a
  338. display: block
  339. font-size: 1.5em
  340. line-height: 1.2em
  341. html.no-touch &:hover
  342. html.touch &:active
  343. color: $textDarkColor
  344. &.site-name
  345. font-size: 2em
  346. &.title
  347. padding-left: 1.5em
  348. .icon
  349. margin-left: -1.5em
  350. margin-right: 0.5em
  351. color: $textColor
  352. .status-icon
  353. margin-left: 0.5em
  354. color: $lightGrey
  355. font-size: 0.8em
  356. .note
  357. margin-top: 0.5em
  358. font-size: 0.9em
  359. line-height: 1em
  360. color: $lightGrey
  361. .meta
  362. margin-top: 0.5em
  363. padding-left: 2.5em
  364. font-size: 0.9em
  365. line-height: 1em
  366. color: $lightGrey
  367. > div
  368. display: inline-block
  369. margin-right: 1em
  370. a
  371. color: $lightGrey
  372. html.no-touch &:hover
  373. html.touch &:active
  374. text-decoration: underline
  375. .actions
  376. float: right
  377. margin-left: 1em
  378. font-size: 1.5em
  379. line-height: 1.3em
  380. color: $lightGrey
  381. white-space: nowrap
  382. > div
  383. display: inline-block
  384. font-size: 0.6em
  385. line-height: 3em
  386. a
  387. color: $lightGrey
  388. html.no-touch &:hover
  389. html.touch &:active
  390. text-decoration: underline
  391. .no-data
  392. color: $lightGrey
  393. padding: 2em 1em
  394. margin-bottom: 2em
  395. text-align: center
  396. border: 1px dotted #ddd
  397. form
  398. margin: 0
  399. height: 100%
  400. .heading
  401. color: $primaryColor
  402. margin: 0.5em 0 0 0
  403. font-size: 1.4em
  404. .field
  405. position: relative
  406. padding: 10px 0
  407. clearfix()
  408. label
  409. display: block
  410. padding: 5px 0
  411. color: $lightGrey
  412. .note
  413. font-size: 0.8em
  414. margin-bottom: 0.5em
  415. .link-form
  416. margin-bottom: 0.5em
  417. input[type='text'],
  418. input[type='search'],
  419. textarea,
  420. select
  421. display: block
  422. width: 100%
  423. input[name='name'],
  424. input[name='name_html'],
  425. input[name='title'],
  426. input[name='code']
  427. font-size: 1.5em
  428. textarea[name='video']
  429. height: 60px
  430. textarea[name='body'],
  431. textarea[name='content']:not(.default)
  432. height: 600px
  433. input[type='checkbox']
  434. display: inline-block
  435. float: left
  436. margin: 4px 10px 4px 0
  437. .field-left
  438. float: left
  439. width: 48%
  440. .field-right
  441. float: right
  442. width: 48%
  443. .site-selected
  444. position: absolute
  445. top: 22px
  446. right: 10px
  447. padding: 0 3px
  448. background: #fff
  449. .inline
  450. label
  451. display: inline-block
  452. width: 20%
  453. float: left
  454. input[type='text'],
  455. input[type='search'],
  456. textarea,
  457. select
  458. display: block
  459. width: 75%
  460. float: right
  461. input[type='checkbox']
  462. width: auto
  463. float: none
  464. margin: 4px 10px
  465. .required label:after
  466. content: ' *'
  467. color: $textColor
  468. .error-message
  469. display: none
  470. color: #fff
  471. padding: 5px 10px
  472. background: $alertColor
  473. &.fullscreen
  474. &:before
  475. content: ''
  476. position: fixed
  477. top: 0
  478. bottom: 0
  479. left: 0
  480. right: 0
  481. background: $primaryColor
  482. z-index: 99
  483. input[name='title'],
  484. input[name='name']
  485. position: fixed
  486. top: 30px
  487. left: 20%
  488. right: 20%
  489. width: auto
  490. color: #fff
  491. font-size: 1.8em
  492. z-index: 100
  493. textarea[name='body'],
  494. textarea[name='content']
  495. position: fixed
  496. top: 90px
  497. bottom: 0
  498. left: 20%
  499. right: 20%
  500. width: auto
  501. height: 87%
  502. padding: 10px
  503. border: 0
  504. background: white
  505. // outline: 10px solid rgba(255, 255, 255, 0.5)
  506. z-index: 100
  507. transition(0.3s, all)
  508. textarea[name='intro'],
  509. textarea[name='video']
  510. display: none
  511. .ui-preview
  512. position: fixed
  513. top: 90px
  514. bottom: 0
  515. left: auto
  516. right: 10px
  517. width: 48%
  518. height: 87%
  519. padding: 10px
  520. border: 0
  521. background: white
  522. // outline: 10px solid rgba(255, 255, 255, 0.5)
  523. z-index: 100
  524. &.preview-mode
  525. textarea[name='body'],
  526. textarea[name='content']
  527. left: 10px
  528. right: auto
  529. width: 48%
  530. button.fullscreen-button
  531. .markdown-help:first-of-type
  532. position: fixed
  533. top: 0
  534. left: 20%
  535. margin: 0
  536. padding: 0 10px
  537. font-size: 18px
  538. font-weight: 300
  539. line-height: 1.5em
  540. background: darken($primaryColor, 5%)
  541. color: #fff
  542. border: 0
  543. z-index: 100
  544. html.no-touch &:hover
  545. html.touch &:active
  546. background: darken($primaryColor, 10%)
  547. button.fullscreen-button
  548. iconic('\66', #fff, 'before')
  549. &:before
  550. margin-right: 0.5em
  551. .markdown-help:first-of-type
  552. left: auto
  553. right: 20%
  554. &:after
  555. content: ' ?'
  556. color: #fff
  557. &.fixed-header
  558. h1
  559. position: fixed
  560. top: 0
  561. left: $navbarWidth
  562. right: 31%
  563. min-width: 520px
  564. margin: 0
  565. padding: 20px 2.5%
  566. border-bottom: 2px solid #ddd
  567. background: #fff
  568. ul.list
  569. margin-top: 87px
  570. .stack .panel:not(.active)
  571. display: none
  572. .panel.dashboard
  573. .content
  574. > h3
  575. color: $lightGrey
  576. margin-bottom: 0.5em
  577. .count
  578. float: right
  579. white-space: nowrap
  580. > ul.list
  581. margin-bottom: 2em
  582. ul.ui-multi-select
  583. list-style-type: none
  584. padding: 10px
  585. margin: 0
  586. max-height: 170px
  587. border: 1px solid $faintGrey
  588. overflow-y: auto
  589. overflow-x: hidden
  590. -webkit-user-select: none
  591. > li
  592. display: inline-block
  593. padding: 4px 10px
  594. margin: 0 12px 12px 0
  595. // max-width: 100%
  596. width: 48%
  597. border: 1px solid $faintGrey
  598. ellipsis()
  599. cursor: pointer
  600. html.no-touch &:hover
  601. html.touch &:active
  602. background: lighten($faintGrey, 50%)
  603. &.selected
  604. color: $linkColor
  605. background: #fff
  606. font-weight: $boldFont
  607. border-color: $primaryColor
  608. outline: 2px solid rgba($primaryColor, 0.5)
  609. &:before
  610. content: '•'
  611. display: block
  612. float: right
  613. vertical-align: top
  614. margin-top: 5px
  615. color: $primaryColor
  616. font-size: 1.5em
  617. line-height: 0.5em
  618. .sidebar &
  619. border-color: #d3d3d3
  620. > li
  621. width: 100%
  622. margin-right: 0
  623. border: 1px solid darken($faintGrey, 10%)
  624. &:last-child
  625. margin-bottom: 0
  626. html.no-touch &:hover
  627. html.touch &:active
  628. background: lighten($faintGrey, 10%)
  629. &.selected
  630. background: lighten($faintGrey, 30%)
  631. .ui-file-upload
  632. .dropzone
  633. padding: 20px
  634. border: 4px dashed #fff
  635. color: #fff
  636. font-size: 2em
  637. text-align: center
  638. cursor: default
  639. .filename
  640. background: #fff
  641. padding: 0 5px
  642. margin-top: -6px
  643. line-height: 1.7em
  644. text-align: center
  645. overflow: hidden
  646. ul.files-list
  647. list-style-type: none
  648. margin: 20px 0
  649. padding: 0
  650. li
  651. position: relative
  652. float: left
  653. max-height: 120px
  654. margin: 0 4% 10px 0
  655. overflow: hidden
  656. -webkit-user-select: none
  657. cursor: pointer
  658. &.selected
  659. outline: 4px solid $primaryColor
  660. > img
  661. display: block
  662. width: 100%
  663. > div
  664. border: 1px solid #e3e3e3
  665. em
  666. font-weight: $boldFont
  667. font-size: 0.8em
  668. .ui-preview
  669. position: absolute
  670. top: 0
  671. bottom: 0
  672. right: 0
  673. left: 0
  674. background: #fff
  675. transition(0.3s, all)
  676. > .button
  677. position: absolute
  678. top: 2px
  679. right: 2px
  680. outline: 2px solid rgba(255,255,255,0.7)
  681. &.preview-button
  682. right: 60px
  683. > .inner
  684. position: absolute
  685. top: 0
  686. bottom: 0
  687. right: 0
  688. left: 0
  689. padding: 0 20px 10px 20px
  690. overflow-y: scroll
  691. overflow-x: auto
  692. -webkit-overflow-scrolling: touch
  693. h3, h4
  694. margin: 1em 0
  695. ol, ul
  696. margin: 0 0.8em
  697. p
  698. &.center
  699. text-align: center
  700. &.right
  701. text-align: right
  702. a
  703. font-weight: $boldFont
  704. .ui-help
  705. position: absolute
  706. top: 15%
  707. right: 20px
  708. bottom: 20px
  709. max-width: 600px
  710. padding: 20px
  711. background: #333
  712. color: #fff
  713. font-size: 0.8em
  714. overflow-y: scroll
  715. overflow-x: hidden
  716. -webkit-overflow-scrolling: touch
  717. z-index: 110
  718. > h3
  719. color: $primaryColor
  720. margin: 1em 0
  721. .close-button
  722. float: right
  723. > table
  724. width: 100%
  725. border-collapse: separate
  726. border-spacing: 0 5px
  727. tbody
  728. td
  729. padding: 5px 10px
  730. td:first-of-type
  731. width: 45%
  732. padding: 5px 10px 5px 0
  733. font-size: 1.1em
  734. line-height: 1.2em
  735. td:nth-child(2)
  736. width: 5px
  737. padding: 0
  738. border: 1px solid rgba(255, 255, 255, 0.1)
  739. border-right: 0
  740. td:last-of-type
  741. padding: 5px 0 5px 10px