base.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* Base
  2. ========================================================================== */
  3. html {
  4. height: 100%;
  5. box-sizing: border-box;
  6. font-family: sans-serif;
  7. scroll-behavior: smooth;
  8. }
  9. *,
  10. *::before,
  11. *::after {
  12. box-sizing: inherit;
  13. }
  14. [x-cloak] {
  15. display: none !important;
  16. }
  17. html,
  18. input,
  19. textarea,
  20. select,
  21. button {
  22. -webkit-font-smoothing: antialiased;
  23. -moz-osx-font-smoothing: grayscale;
  24. }
  25. body {
  26. font-family: var(--font-family);
  27. font-size: 0.85rem;
  28. line-height: 1.5;
  29. height: 100%;
  30. color: var(--color-text);
  31. background-color: var(--color-background);
  32. }
  33. a {
  34. color: var(--color-text-link);
  35. text-decoration: none;
  36. &:hover {
  37. color: var(--color-text-link-hover);
  38. }
  39. }
  40. p,
  41. pre {
  42. margin: 0;
  43. }
  44. h1,
  45. .u-text-H1,
  46. h2,
  47. .u-text-H2,
  48. h3,
  49. .u-text-H3 {
  50. font-weight: 500;
  51. margin: 0;
  52. }
  53. h1,
  54. .u-text-H1 {
  55. font-size: 1.4rem;
  56. }
  57. h2,
  58. .u-text-H2 {
  59. font-size: 1.2rem;
  60. }
  61. h3,
  62. .u-text-H3 {
  63. font-size: 1rem;
  64. }
  65. ol,
  66. ul {
  67. list-style: none;
  68. margin: 0;
  69. padding: 0;
  70. }
  71. button {
  72. cursor: pointer;
  73. line-height: inherit;
  74. }
  75. img {
  76. vertical-align: middle;
  77. }
  78. table {
  79. width: 100%;
  80. border-collapse: collapse;
  81. border-spacing: 0;
  82. }
  83. textarea {
  84. resize: vertical;
  85. min-height: 60px;
  86. }
  87. fieldset {
  88. border: 0;
  89. margin: 0;
  90. padding: 0;
  91. }
  92. dialog {
  93. position: fixed;
  94. padding: 0;
  95. &::backdrop {
  96. background-color: rgb(0 0 0 / 50%);
  97. }
  98. }
  99. summary {
  100. list-style: none;
  101. &::-webkit-details-marker {
  102. display: none;
  103. }
  104. }