sample.less.txt 763 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @base: #f938ab;
  2. .box-shadow(@style, @c) when (iscolor(@c)) {
  3. border-radius: @style @c;
  4. }
  5. .box-shadow(@style, @alpha: 50%) when (isnumber(@alpha)) {
  6. .box-shadow(@style, rgba(0, 0, 0, @alpha));
  7. }
  8. .box {
  9. color: saturate(@base, 5%);
  10. border-color: lighten(@base, 30%);
  11. div {
  12. .box-shadow((0 0 5px), 30%);
  13. }
  14. }
  15. #header {
  16. h1 {
  17. font-size: 26px;
  18. font-weight: bold;
  19. }
  20. p { font-size: 12px;
  21. a { text-decoration: none;
  22. &:hover { border-width: 1px }
  23. }
  24. }
  25. }
  26. @the-border: 1px;
  27. @base-color: #111;
  28. @red: #842210;
  29. #header {
  30. color: (@base-color * 3);
  31. border-left: @the-border;
  32. border-right: (@the-border * 2);
  33. }
  34. #footer {
  35. color: (@base-color + #003300);
  36. border-color: desaturate(@red, 10%);
  37. }