base.css 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. color: var(--color-text);
  30. background-color: var(--color-background);
  31. height: 100%;
  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. color: var(--color-text-heading);
  51. font-weight: 500;
  52. margin: 0;
  53. }
  54. h1,
  55. .u-text-H1 {
  56. font-size: 1.4rem;
  57. }
  58. h2,
  59. .u-text-H2 {
  60. font-size: 1.2rem;
  61. }
  62. h3,
  63. .u-text-H3 {
  64. font-size: 1rem;
  65. }
  66. ol,
  67. ul {
  68. list-style: none;
  69. margin: 0;
  70. padding: 0;
  71. }
  72. button {
  73. cursor: pointer;
  74. line-height: inherit;
  75. }
  76. img {
  77. vertical-align: middle;
  78. }
  79. table {
  80. width: 100%;
  81. border-collapse: collapse;
  82. border-spacing: 0;
  83. }
  84. textarea {
  85. resize: vertical;
  86. min-height: 60px;
  87. }
  88. fieldset {
  89. border: 0;
  90. margin: 0;
  91. padding: 0;
  92. }
  93. dialog {
  94. position: fixed;
  95. padding: 0;
  96. &::backdrop {
  97. background-color: rgb(0 0 0 / 50%);
  98. }
  99. }
  100. summary {
  101. list-style: none;
  102. &::-webkit-details-marker {
  103. display: none;
  104. }
  105. }