logbot.sass 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. @import variables.sass
  2. // global
  3. ::selection
  4. background-color: $selection-bg-colour
  5. color: $selection-colour
  6. ::-moz-selection
  7. background-color: $selection-bg-colour
  8. color: $selection-colour
  9. body
  10. background-color: $white-colour
  11. color: $black-colour
  12. font-family: "Hind", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif
  13. font-size: medium
  14. margin: 0
  15. padding: 0 10px 0 0
  16. a
  17. color: $link-colour
  18. text-decoration: none
  19. &:hover
  20. text-decoration: underline
  21. &:focus
  22. outline: none
  23. &:visited
  24. color: $link-visited-colour
  25. .notification
  26. background-color: $light-colour
  27. border-radius: 3px
  28. color: $black-colour
  29. margin: 4px 18px 4px 4px
  30. padding: .25rem 1.5rem .25rem .5rem
  31. &.is-bordered
  32. border: 1px solid $light-colour
  33. &.is-warning
  34. background-color: $warning-colour
  35. color: $black-colour
  36. .button
  37. border-radius: 4px
  38. cursor: pointer
  39. display: inline-block
  40. height: 28px
  41. margin: 1px
  42. text-align: center
  43. width: 32px
  44. svg
  45. path
  46. fill: $black-colour
  47. &:hover
  48. background-color: $light-colour
  49. color: $black-colour
  50. text-decoration: none
  51. svg
  52. path
  53. fill: $black-colour
  54. &[disabled]
  55. cursor: not-allowed
  56. opacity: 0.25
  57. &:hover
  58. background-color: $white-colour
  59. color: $black-colour
  60. svg
  61. path
  62. fill: $black-colour
  63. svg
  64. height: 18px
  65. position: relative
  66. top: calc(50% - 9px)
  67. width: 18px
  68. .hidden
  69. visibility: hidden
  70. .default-display-none
  71. display: none
  72. #content
  73. clear: both
  74. padding: 0 5px 1.5em 5px
  75. // index
  76. #index
  77. max-width: 42rem
  78. padding-left: 8px
  79. svg
  80. path
  81. fill: $black-colour
  82. #logo-large
  83. color: $dark-colour
  84. font-size: xx-large
  85. font-weight: bold
  86. svg
  87. height: 128px
  88. vertical-align: middle
  89. width: 128px
  90. path
  91. fill: $dark-colour
  92. ul.link-list
  93. list-style: none
  94. margin: 0
  95. padding: 0
  96. svg
  97. height: 1em
  98. margin-right: 2px
  99. width: 1em
  100. li
  101. display: inline-block
  102. margin-right: 1em
  103. #intro
  104. margin-bottom: 2em
  105. h3
  106. color: $dark-colour
  107. margin-bottom: 0.5em
  108. margin-top: 2em
  109. p
  110. margin-bottom: 0.5em
  111. margin-top: 0
  112. // topic
  113. #topic
  114. background-color: $light-colour
  115. clear: both
  116. color: $black-colour
  117. height: $topic-height
  118. line-height: $topic-height
  119. overflow: hidden
  120. padding: 0 4px
  121. text-overflow: ellipsis
  122. white-space: nowrap
  123. &:hover
  124. height: auto
  125. min-height: 30px
  126. white-space: normal
  127. body
  128. &.topic
  129. #main
  130. top: $nav-height + $topic-height
  131. #channel-topic
  132. border-bottom: 1px solid $dark-colour
  133. // logs
  134. #logs, #search-logs
  135. ul
  136. list-style: none
  137. margin: 0
  138. padding: 0
  139. li
  140. line-height: 120%
  141. padding: 3px 1rem 3px 4px
  142. &:hover
  143. background-color: $light-colour
  144. color: $black-colour
  145. &.hl
  146. background-color: $hilite-colour
  147. color: $black-colour
  148. .time
  149. color: $medium-colour
  150. display: inline
  151. position: absolute
  152. a
  153. color: $medium-colour
  154. .nick, .notice
  155. color: $nick-colour
  156. display: inline
  157. font-weight: 500
  158. overflow: hidden
  159. position: absolute
  160. text-overflow: ellipsis
  161. white-space: nowrap
  162. width: 7em
  163. z-index: 1
  164. &:hover
  165. background-color: $light-colour
  166. overflow: visible
  167. padding-right: 5px
  168. width: auto !important
  169. .action
  170. overflow-wrap: break-word
  171. word-wrap: break-word
  172. .a
  173. color: $medium-colour
  174. .nc
  175. color: $nick-colour
  176. font-weight: 500
  177. .text
  178. overflow-wrap: break-word
  179. word-wrap: break-word
  180. .notice, .notice-text
  181. font-style: italic
  182. .time-nav
  183. color: $medium-colour
  184. margin-top: 1rem
  185. padding-left: 4px
  186. a
  187. color: $medium-colour
  188. .time-nav-item
  189. display: inline-block
  190. &.static
  191. color: $dark-colour
  192. &:not(:last-child)
  193. border-right: 1px dotted $light-colour
  194. margin-right: 8px
  195. padding-right: 8px
  196. #debug
  197. max-width: calc(100% - #{$sidebar-width-open + 32px})
  198. overflow: scroll
  199. // settings
  200. .modal
  201. align-items: center
  202. bottom: 0
  203. display: none
  204. justify-content: center
  205. left: 0
  206. overflow: hidden
  207. position: absolute
  208. position: fixed
  209. right: 0
  210. top: 0
  211. z-index: 20
  212. &.is-active
  213. display: flex
  214. .modal-background
  215. background-color: $overlay-colour
  216. bottom: 0
  217. left: 0
  218. position: absolute
  219. right: 0
  220. top: 0
  221. .modal-content
  222. margin: 0
  223. max-height: calc(100vh - 160px)
  224. overflow: auto
  225. position: relative
  226. width: 100%
  227. .modal-close
  228. background: none
  229. border-radius: 100%
  230. border: none
  231. color: $white-colour
  232. cursor: pointer
  233. font-size: large
  234. height: 40px
  235. position: fixed
  236. right: 20px
  237. top: 20px
  238. width: 40px
  239. &:hover
  240. background-color: $black-colour
  241. body
  242. // small text
  243. &.font-s
  244. font-size: small
  245. .menu
  246. font-size: small
  247. #logs, #search-logs
  248. .time
  249. width: $time-width-small
  250. .nick, .notice
  251. margin-left: calc(#{$time-width-small} + 4px)
  252. width: $nick-width-small
  253. .action
  254. margin-left: calc(#{$time-width-small} + 4px)
  255. .text
  256. margin-left: calc(#{$time-width-small} + 4px + #{$nick-width-small} + 4px)
  257. // normal sized text
  258. &:not(.font-s)
  259. #logs, #search-logs
  260. .time
  261. width: $time-width-large
  262. .nick, .notice
  263. margin-left: calc(#{$time-width-large} + 4px)
  264. width: $nick-width-large
  265. .action
  266. margin-left: calc(#{$time-width-large} + 4px)
  267. .text
  268. margin-left: calc(#{$time-width-large} + 4px + #{$nick-width-large} + 4px)
  269. // hide irc bots
  270. &.hide-b
  271. #logs
  272. li
  273. &.bot
  274. display: none
  275. #no-filtered-events
  276. display: block
  277. &:not(.hide-b)
  278. #no-filtered-events
  279. display: none
  280. // desaturate irc bots
  281. &:not(.norm-b)
  282. #logs, #search-logs
  283. li
  284. &.bot
  285. .nick, .notice, .anick, .text, .action
  286. color: $medium-colour
  287. a
  288. color: $link-light-colour
  289. // wider nick column
  290. &.nick-w
  291. &.font-s
  292. #logs, #search-logs
  293. .nick
  294. width: calc(#{$nick-width-small} + 2em)
  295. .text
  296. margin-left: calc(#{$time-width-small} + 4px + #{$nick-width-small} + 2em + 4px)
  297. &:not(.font-s)
  298. #logs, #search-logs
  299. .nick
  300. width: calc(#{$nick-width-large} + 2em)
  301. .text
  302. margin-left: calc(#{$time-width-large} + 4px + #{$nick-width-large} + 2em + 4px)
  303. #settings-container
  304. background-color: $white-colour
  305. border-radius: 5px
  306. font-size: 1rem
  307. line-height: 200%
  308. padding: 10px
  309. .setting
  310. cursor: default
  311. .not-implemented
  312. color: $medium-colour
  313. input
  314. background-color: $white-colour // for chrome
  315. &.hover
  316. box-shadow: 0 0 2px $dark-colour
  317. #settings-close-container
  318. text-align: right
  319. #settings-close
  320. background-color: $dark-colour
  321. border-radius: 3px
  322. color: $white-colour
  323. cursor: pointer
  324. display: inline
  325. line-height: 1.5
  326. padding: 5px 12px
  327. &:hover
  328. background-color: $medium-colour
  329. text-decoration: none
  330. // sidebar
  331. #sidebar
  332. border-right: 1px solid $light-colour
  333. min-height: 100vh
  334. position: fixed
  335. top: 0
  336. width: $sidebar-width-open
  337. .select
  338. display: block
  339. margin: 2px
  340. select
  341. width: 100%
  342. #actions
  343. height: $nav-height
  344. position: fixed
  345. width: $sidebar-width-open
  346. z-index: 5
  347. #about
  348. float: right
  349. #menu
  350. line-height: 1.25
  351. a
  352. color: $black-colour
  353. display: block
  354. padding: 0.5em 0.75em
  355. &:hover
  356. background-color: $light-colour
  357. color: $black-colour
  358. text-decoration: none !important
  359. &.is-active
  360. background-color: $dark-colour
  361. color: $white-colour
  362. &:hover
  363. background-color: $dark-colour
  364. color: $white-colour
  365. #archived
  366. background-color: $light-colour
  367. color: $black-colour
  368. font-weight: 500
  369. margin-top: 1em
  370. padding: .5em .75em
  371. .archived
  372. a
  373. background-color: $white-colour
  374. color: $medium-colour
  375. &:hover
  376. background-color: $light-colour
  377. color: $medium-colour
  378. body
  379. &.menu-c
  380. .svg-sidebar-collapse
  381. display: none
  382. .svg-sidebar-open
  383. display: inline-block
  384. #sidebar
  385. transition-duration: $transition-time
  386. transition-property: width
  387. width: $sidebar-width-closed
  388. #actions
  389. transition-duration: $transition-time
  390. transition-property: width
  391. width: $sidebar-width-closed
  392. #about
  393. float: inherit
  394. #networks
  395. display: none
  396. #channels
  397. display: none
  398. #nav
  399. margin-left: $sidebar-width-closed
  400. transition-duration: $transition-time
  401. transition-property: margin, width
  402. width: calc(100% - #{$sidebar-width-closed})
  403. #main
  404. margin-left: $sidebar-width-closed
  405. transition-duration: $transition-time
  406. transition-property: margin, width
  407. width: calc(100% - #{$sidebar-width-closed + 1px})
  408. &:not(.menu-c)
  409. .svg-sidebar-closed
  410. display: inline-block
  411. .svg-sidebar-open
  412. display: none
  413. #sidebar
  414. transition-duration: $transition-time
  415. transition-property: width
  416. #xxactions
  417. transition-duration: $transition-time
  418. transition-property: width
  419. #nav
  420. transition-duration: $transition-time
  421. transition-property: margin, width
  422. #main
  423. transition-duration: $transition-time
  424. transition-property: margin, width
  425. width: calc(100% - #{$sidebar-width-open + 1px})
  426. #networks
  427. font-size: initial
  428. margin-top: $nav-height
  429. svg
  430. height: 18px
  431. width: 18px
  432. #current-network
  433. border-bottom-left-radius: 0
  434. border-bottom-right-radius: 0
  435. border-top-left-radius: 3px
  436. border-top-right-radius: 3px
  437. border: 1px solid $light-colour
  438. color: $black-colour
  439. height: 32px
  440. margin-bottom: 0
  441. &:hover
  442. border-color: $medium-colour
  443. #current-network-toggle
  444. float: right
  445. svg
  446. transform: translateY(25%)
  447. path
  448. fill: $black-colour
  449. #other-networks
  450. border-bottom-left-radius: 3px
  451. border-bottom-right-radius: 3px
  452. border: 1px solid $light-colour
  453. margin: 0 2px 4px 2px
  454. border-top: none
  455. .network
  456. margin: 0
  457. &:hover
  458. background-color: $light-colour
  459. color: $black-colour
  460. text-decoration: none
  461. &.collapsed
  462. #current-network
  463. border-bottom-left-radius: 3px
  464. border-bottom-right-radius: 3px
  465. margin-bottom: 2px
  466. #other-networks
  467. display: none
  468. .svg-networks-close
  469. display: none
  470. &:not(.collapsed)
  471. .svg-networks-open
  472. display: none
  473. .network
  474. background-color: $white-colour
  475. color: $dark-colour
  476. cursor: pointer
  477. display: block
  478. line-height: 2
  479. margin: 2px
  480. padding: 0 .75em
  481. #channels
  482. &.one-network
  483. margin-top: $nav-height + 2px
  484. #channel-menu
  485. height: calc(100vh - (#{$nav-height} + 2px))
  486. &:not(.one-network)
  487. #channel-menu
  488. height: calc(100vh - (#{$nav-height} + 6px + #{$network-height}))
  489. ul
  490. list-style: none
  491. margin: 0
  492. overflow-x: hidden
  493. padding: 0
  494. // pika
  495. .pika-single
  496. background-color: $white-colour
  497. border-color: $light-colour
  498. color: $black-colour
  499. .pika-label
  500. background-color: $white-colour
  501. color: $black-colour
  502. .pika-button
  503. background-color: $light-colour
  504. color: $black-colour
  505. &:hover
  506. background-color: $dark-colour
  507. color: $white-colour
  508. .is-selected
  509. .pika-button
  510. background-color: $dark-colour
  511. box-shadow: none
  512. color: $white-colour
  513. .pika-table
  514. abbr
  515. text-decoration: none
  516. // navigation
  517. #nav
  518. background-color: $white-colour
  519. border-bottom: 1px solid $light-colour
  520. border-left: 1px solid $light-colour
  521. color: $black-colour
  522. height: $nav-height
  523. margin-left: $sidebar-width-open
  524. position: fixed
  525. top: 0
  526. width: calc(100% - #{$sidebar-width-open})
  527. z-index: 2
  528. #date-container
  529. border-right: 1px solid $light-colour
  530. float: left
  531. font-size: medium
  532. margin-left: 4px
  533. margin-right: 4px
  534. min-width: calc(#{$time-width-large} + 4px + #{$nick-width-large} + 4px)
  535. padding-right: 4px
  536. #date-next
  537. float: right
  538. #date
  539. margin-left: 4px
  540. vertical-align: bottom
  541. #date-icon
  542. margin-left: 4px
  543. #date-picker
  544. display: inline-block
  545. .nav-button
  546. float: left
  547. margin-right: 8px
  548. #search-input-container
  549. float: left
  550. margin-left: 4px
  551. margin-top: 2px
  552. input
  553. background-color: inherit
  554. border-radius: 2px
  555. border: 1px solid $light-colour
  556. color: $black-colour
  557. padding: 3px
  558. #search-button-container
  559. float: left
  560. #search-nav
  561. font-size: 1rem
  562. #channel-logs
  563. margin-left: 4px
  564. #network-stats-container
  565. margin-left: 4px
  566. #loc-container
  567. display: inline-block
  568. position: absolute
  569. right: 10px
  570. background-color: $dark-colour
  571. font-size: medium
  572. margin: 1px
  573. padding: 0 5px
  574. a
  575. color: $white-colour
  576. // main content
  577. #main
  578. border-left: 1px solid $light-colour
  579. margin-left: $sidebar-width-open
  580. min-width: calc(100% - #{$sidebar-width-open + 1px})
  581. padding-bottom: 1rem
  582. padding-top: 4px
  583. position: absolute
  584. top: $nav-height
  585. // search
  586. #search-form
  587. max-width: 40rem
  588. .search-label
  589. display: inline-block
  590. font-weight: 500
  591. margin-right: 8px
  592. padding: 5px 0
  593. text-align: right
  594. vertical-align: top
  595. width: 5rem
  596. .search-input
  597. display: inline-block
  598. padding: 5px 0
  599. width: calc(100% - 6rem)
  600. .search-option
  601. display: inline-block
  602. white-space: nowrap
  603. input
  604. background-color: inherit
  605. border: 1px solid $light-colour
  606. color: $black-colour
  607. font-size: 100%
  608. padding: 5px
  609. #search-query, #search-channels
  610. width: calc(100% - 10px)
  611. #search-when-from, #search-when-to
  612. width: 7em
  613. #search-who
  614. width: 50%
  615. #search_channels_chosen
  616. width: 100% !important
  617. #search-form-submit
  618. background-color: inherit
  619. border-radius: 2px
  620. border: 1px solid $light-colour
  621. cursor: pointer
  622. &:hover
  623. background-color: $light-colour
  624. color: $black-colour
  625. .chosen-container-multi
  626. .chosen-choices
  627. background-color: $white-colour
  628. background-image: none
  629. border-color: $light-colour
  630. color: $black-colour
  631. li
  632. &.search-field
  633. input[type="text"]
  634. font-family: inherit
  635. &.search-choice
  636. background-color: $light-colour
  637. background-image: none
  638. border-color: $light-colour
  639. border-radius: 0px
  640. box-shadow: none
  641. color: $dark-colour
  642. .chosen-container
  643. .chosen-drop
  644. border-color: $light-colour
  645. box-shadow: none
  646. .chosen-results
  647. background-color: $white-colour
  648. color: $black-colour
  649. #search_channels_chosen .chosen-search-input.default
  650. padding: 0
  651. // search results
  652. #search-count
  653. margin-top: 1em
  654. #search-logs
  655. div
  656. &.date
  657. background-color: $dark-colour
  658. color: $white-colour
  659. margin-top: 1rem
  660. padding-left: 4px
  661. ul
  662. li.channel
  663. a
  664. color: $black-colour
  665. background-color: $light-colour
  666. color: $black-colour
  667. margin: 2px 0
  668. // hide nav search form on search pages
  669. body
  670. &.search
  671. #search-input-container, #search-button-container
  672. display: none
  673. // channel list
  674. #channel-list
  675. margin: 16px 0 0 0
  676. padding-left: 8px
  677. #filter
  678. font-size: 1rem
  679. #no-results
  680. margin-left: 16px
  681. ul
  682. list-style: none
  683. padding-left: 16px
  684. .channel
  685. color: $black-colour
  686. .topic
  687. border-left: 1px solid $light-colour
  688. color: $medium-colour
  689. margin-left: 8px
  690. padding-left: 8px
  691. a
  692. color: $link-light-colour
  693. li
  694. margin-bottom: 1rem
  695. &:not(.match)
  696. display: none
  697. // channel stats
  698. #stats
  699. padding-left: 8px
  700. .loading
  701. color: $medium-colour
  702. .loading-hide
  703. display: none
  704. h4
  705. margin-top: 8px
  706. a
  707. color: $black-colour
  708. font-weight: bold
  709. #main
  710. min-width: 800px
  711. #events
  712. border-spacing: 0
  713. margin: 1em 0
  714. th
  715. font-weight: 500
  716. padding: 0 1em 0 0
  717. text-align: right
  718. vertical-align: top
  719. white-space: nowrap
  720. td
  721. min-width: 12em
  722. padding: 0 3em 0 0
  723. white-space: nowrap
  724. #hours-plot
  725. height: 150px
  726. margin-top: 2em
  727. width: 800px
  728. #hours-now
  729. border-left: 2px solid $dark-colour
  730. filter: drop-shadow(0px 0px 1px $white-colour) drop-shadow(0px 0px 1px $white-colour) drop-shadow(0px 0px 1px $white-colour)
  731. font-size: small
  732. padding-left: 1px
  733. position: absolute
  734. #nicks-plot
  735. width: 800px
  736. tr
  737. &.bot
  738. .nick
  739. color: $medium-colour !important
  740. .nick
  741. color: $nick-colour
  742. font-weight: 500
  743. padding-right: 8px
  744. white-space: nowrap
  745. .count
  746. padding-right: 8px
  747. text-align: right
  748. .bar
  749. width: 100%
  750. div
  751. background-color: $light-colour
  752. border: 1px solid $medium-colour
  753. height: 1em
  754. // config
  755. #config
  756. padding-left: 8px
  757. .section
  758. margin-left: 1rem
  759. .label, .value
  760. display: inline-block
  761. .label
  762. font-size: inherit
  763. margin-right: 1rem
  764. text-align: right
  765. width: 5rem
  766. ul
  767. list-style: none
  768. padding-left: 1rem
  769. // small screens
  770. @media screen and (min-width: 769px)
  771. .modal-content
  772. max-height: calc(100vh - 40px)
  773. width: 640px
  774. @media (max-width: 479px)
  775. body
  776. &:not(.font-s), &.font-s
  777. #logs, #search-logs
  778. .time
  779. display: inline-block
  780. position: static
  781. .nick
  782. display: inline
  783. font-weight: bold
  784. margin-left: 0
  785. position: static
  786. &:hover
  787. padding-right: 0px
  788. .action
  789. display: inline
  790. margin-left: 0
  791. .text
  792. display: inline
  793. margin-left: 1em
  794. #reload-container, #stats-container, #topic-container
  795. display: none
  796. &:not(.menu-c)
  797. #search-input-container
  798. display: none
  799. #search-form
  800. .search-label
  801. font-weight: 700
  802. padding: 5px
  803. text-align: left
  804. .search-input
  805. display: block
  806. padding: 5px
  807. width: calc(100% - 10px)
  808. #search-when-from, #search-when-to
  809. width: 6em
  810. @media (max-width: 640px)
  811. #not-tiny-screen
  812. display: none
  813. #nav
  814. #search-input-container, #loc-container, #raw-container, #end-container
  815. display: none
  816. @media (max-width: 800px)
  817. #nav
  818. #search-input-container, #loc-container
  819. display: none
  820. @media (max-width: 1200px)
  821. #nav
  822. #search-input-container
  823. display: none