css.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .syntax--source.syntax--css {
  2. .syntax--entity {
  3. // function()
  4. &.syntax--function {
  5. color: @mono-2;
  6. // url rgb
  7. &.syntax--support {
  8. color: @hue-1;
  9. }
  10. }
  11. // .class :pseudo-class attribute
  12. &.syntax--selector {
  13. color: @hue-6;
  14. // div span
  15. &.syntax--tag {
  16. color: @hue-5;
  17. }
  18. // #id
  19. &.syntax--id {
  20. color: @hue-2;
  21. }
  22. }
  23. // property: constant
  24. &.syntax--property {
  25. color: @mono-2;
  26. // height position border
  27. &.syntax--support {
  28. color: @mono-1;
  29. }
  30. }
  31. // --variable
  32. &.syntax--variable {
  33. color: @hue-5;
  34. }
  35. }
  36. // property: constant
  37. .syntax--constant {
  38. color: @mono-2;
  39. // flex solid bold
  40. &.syntax--support {
  41. color: @mono-1;
  42. }
  43. // 3px 4em
  44. &.syntax--numeric {
  45. color: @hue-6;
  46. }
  47. // screen print
  48. &.syntax--media {
  49. color: @hue-6;
  50. }
  51. // #b294bb blue red
  52. &.syntax--color {
  53. color: @hue-6;
  54. }
  55. // from to
  56. &.syntax--offset {
  57. color: @mono-1;
  58. }
  59. // [attribute=attribute-value]
  60. &.syntax--attribute-value {
  61. color: @hue-4;
  62. }
  63. }
  64. .syntax--punctuation {
  65. // . : ::
  66. &.syntax--selector {
  67. color: @hue-6;
  68. // *
  69. &.syntax--wildcard {
  70. color: @hue-5;
  71. }
  72. // #
  73. &.syntax--id {
  74. color: @hue-2;
  75. }
  76. // []
  77. &.syntax--attribute {
  78. color: @mono-1;
  79. }
  80. }
  81. }
  82. }