sample.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. h1 {
  2. color: hotpink;
  3. font-family: cursive;
  4. display: inline-block;
  5. position:sticky;
  6. top: 0;
  7. }
  8. canvas{
  9. width:50%;
  10. height:50%;
  11. align-items: center;
  12. border: 1px solid black;
  13. }
  14. html[data-theme="light"]{
  15. --body-background-color:rgba(255, 255, 255, 0.333);
  16. --font-color:rgb(2, 2, 2);
  17. --a-color:rgba(71, 220, 71, 0.133);
  18. --a-link-color:rgba(71, 220, 71, 0.133);
  19. --a-hover-color:rgba(71, 220, 71, 0.133);
  20. --a-active-color:rgba(71, 220, 71, 0.133);
  21. --a-visited-color:rgba(71, 220, 71, 0.133);
  22. }
  23. html[data-theme="dark"]{
  24. --body-background-color:#121929;
  25. --font-color:#DED8D4;
  26. --a-color:#DED8D4;
  27. --a-link-color:rgba(71, 220, 71, 0.133);
  28. --a-hover-color:#862930;
  29. --a-active-color:#DED8D4;
  30. --a-visited-color:#DED8D4;
  31. }
  32. @property --vw{
  33. syntax: '<length>';
  34. inherits:true;
  35. initial-value:100vw;
  36. }
  37. @property --vh{
  38. syntax: '<length>';
  39. inherits:true;
  40. initial-value:100vh;
  41. }
  42. :root{
  43. --body-background-color:rgba(53, 139, 225, 0.333);
  44. --background-color:rgba(53, 139, 225, 0.333);
  45. --backdrop-color:rgba(94, 164, 235, 0.3);
  46. --font-color:rgb(91, 158, 91);
  47. --font-shadow-color:rgb(91, 158, 91);
  48. --filter-color:rgb(91, 158, 91);
  49. --filter-shadow-color:rgb(91, 158, 91);
  50. --hover-color:rgba(71, 220, 71, 0.133);
  51. --a-color:rgba(71, 220, 71, 0.133);
  52. --a-link-color:rgba(71, 220, 71, 0.133);
  53. --a-hover-color:rgba(71, 220, 71, 0.133);
  54. --a-active-color:rgba(71, 220, 71, 0.133);
  55. --a-visited-color:rgba(71, 220, 71, 0.133);
  56. --normal-color:rgba(190, 243, 238, 0.133);
  57. --notice-color:rgba(88, 144, 235, 0.133);
  58. --warming-color:rgba(240, 218, 75, 0.133);
  59. --wrong-color:rgba(243, 31, 31, 0.133);
  60. --red:#122;
  61. --green:#122;
  62. --blue:#122;
  63. --black:#122;
  64. --white:#122;
  65. --gray:#122;
  66. --yellow:#122;
  67. --purple:#122;
  68. --pink:#122;
  69. --orange:#122;
  70. --brown:#122;
  71. --cyan:#122;
  72. --magenta:#122;
  73. --C:#122;
  74. --M:#122;
  75. --Y:#122;
  76. --K:#122;
  77. --plate-size-default:98%;
  78. --font-size:12px;
  79. --font-default-size:12px;
  80. --font-scale-size:24px;
  81. --font-scale-default-size:24px;
  82. --title-size:18px;
  83. --title-default-size:18px;
  84. --content-size:12px;
  85. --content-default-size:12px;
  86. --button-text-size:15px;
  87. --button-text-default-size:15px;
  88. --test-border:2px solid black;
  89. --production-border:2px solid black;
  90. --w:tan(atan2(var(--vw),1px));
  91. --h:tan(atan2(var(--vh),1px));
  92. }
  93. body::before{
  94. content:counter(w) "x" counter(h);
  95. counter-reset: w var(--w) h var(--h);
  96. font-size:100px;
  97. position:fixed;
  98. inset:0;
  99. width:fit-content;
  100. height:fit-content;
  101. margin:auto;
  102. }
  103. body{
  104. background-color: var(--body-backdrop-color);
  105. color: var(--font-color);
  106. }
  107. body a{
  108. color:var(--a-color);
  109. }
  110. body a:hover{
  111. color:var(--a-hover-color);
  112. }
  113. body a:visited{
  114. color:var(--a-visited-color);
  115. }