case.css 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @custom-media --KeepName (MIN-WIDTH: 500PX);
  2. .foo {
  3. color: hsl(0.75TURN, 60%, 70%);
  4. }
  5. p:FIRST-CHILD {
  6. color: lime;
  7. background-color: black;
  8. padding: 5px;
  9. }
  10. a::AFTER {
  11. content: "→";
  12. }
  13. a:AFTER {
  14. content: "→";
  15. }
  16. ::-WEBKIT-PROGRESS-BAR {
  17. background-color: orange;
  18. }
  19. TABLE {}
  20. /* apply a dashed border to all unresolved elements */
  21. :unresolved {
  22. border: 1px dashed red;
  23. display: inline-block;
  24. }
  25. /* x-panel's that are unresolved are red */
  26. x-panel:unresolved {
  27. color: red;
  28. }
  29. /* once the definition of x-panel is registered, it becomes green */
  30. x-panel {
  31. color: green;
  32. display: block;
  33. padding: 5px;
  34. display: block;
  35. }
  36. :host {
  37. all: initial;
  38. display: block;
  39. contain: content;
  40. text-align: center;
  41. background: linear-gradient(to left, hotpink, transparent);
  42. max-width: 500px;
  43. margin: 0 auto;
  44. border-radius: 8px;
  45. transition: transform .2s ease-out;
  46. }
  47. :host([hidden]) {
  48. display: none;
  49. }
  50. :host(:hover) {
  51. transform: scale(1.1);
  52. }