_settings.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. //
  2. // Settings
  3. //
  4. ._settings {
  5. display: none;
  6. position: absolute;
  7. top: 0;
  8. bottom: 0;
  9. z-index: $headerZ;
  10. &._in { display: block; }
  11. ._sidebar {
  12. &:after { // padding bottom
  13. content: '';
  14. display: block;
  15. height: $headerHeight;
  16. }
  17. ._sidebar-hidden & { display: block; }
  18. }
  19. ._header { justify-content: space-between; }
  20. }
  21. //
  22. // Settings page
  23. //
  24. ._settings-fieldset {
  25. display: flex;
  26. margin: 1.5rem 0;
  27. line-height: 1.5rem;
  28. }
  29. ._settings-legend {
  30. flex: 0 1 10rem;
  31. margin: 0;
  32. padding-right: .5rem;
  33. line-height: inherit;
  34. font-size: inherit;
  35. font-weight: $boldFontWeight;
  36. text-align: right;
  37. @extend %border-box;
  38. }
  39. ._settings-inputs {
  40. flex: 1 1 20rem;
  41. }
  42. ._settings-label {
  43. margin: 0 0 .375rem;
  44. > small {
  45. display: block;
  46. color: $textColorLight;
  47. margin-left: 1.75rem;
  48. }
  49. input[type=checkbox] {
  50. display: inline-block;
  51. vertical-align: top;
  52. margin: .25rem .375rem;
  53. }
  54. }
  55. @media (max-width: $maxWidth) {
  56. ._setting-max-width { display: none; }
  57. }
  58. ._reset-link {
  59. color: $textColorRed;
  60. }
  61. //
  62. // Footer
  63. //
  64. ._sidebar-footer {
  65. position: fixed;
  66. z-index: $headerZ;
  67. bottom: 0;
  68. left: 0;
  69. width: $sidebarWidth;
  70. height: $headerHeight;
  71. background: $noteGreenBackground;
  72. border-top: 1px solid $noteGreenBorder;
  73. border-right: 1px solid $noteGreenBorder;
  74. @extend %border-box;
  75. @extend %user-select-none;
  76. @media #{$mediumScreen} { width: $sidebarMediumWidth; }
  77. }
  78. ._settings-btn {
  79. display: block;
  80. width: 100%;
  81. height: 100%;
  82. line-height: 1.5rem;
  83. padding: 0 .75rem;
  84. font-size: .875rem;
  85. font-weight: $boldFontWeight;
  86. color: inherit;
  87. text-align: left;
  88. cursor: pointer;
  89. @extend %border-box;
  90. > svg {
  91. display: inline-block;
  92. vertical-align: top;
  93. width: 1.5rem;
  94. height: 1.5rem;
  95. margin-right: .125rem;
  96. fill: currentColor;
  97. pointer-events: none;
  98. }
  99. }
  100. //
  101. // Header tabs
  102. //
  103. ._settings-tabs {
  104. display: none; // mobile only
  105. margin-right: .5rem;
  106. line-height: $headerHeight;
  107. }
  108. ._settings-tab {
  109. position: relative;
  110. display: inline-block;
  111. vertical-align: top;
  112. padding: 0 .75rem;
  113. cursor: pointer;
  114. &, &:hover {
  115. color: $textColorLight;
  116. text-decoration: none;
  117. }
  118. &.active {
  119. color: $textColor;
  120. font-weight: $boldFontWeight;
  121. text-decoration: none;
  122. box-shadow: inset 0 -2px $linkColor;
  123. }
  124. }