_settings.scss 2.3 KB

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