base.css 1.4 KB

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