less_demo.info.css.less 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @import '../imports/less_demo.imported.css.less';
  2. @import '../imports/less_demo.clearfix.css.less';
  3. /**
  4. * The following variables defined in less_demo.info:
  5. * @gradient_start
  6. * @gradient_end
  7. * @text_glow
  8. */
  9. @gradient_start: blue;
  10. @gradient_end: black;
  11. @text_glow: green;
  12. @test: red;
  13. #less_demo_gradient {
  14. .clearfix;
  15. .gradient(@gradient_start, @gradient_end);
  16. font-family: Arial, Helvetica, sans-serif;
  17. font-size: 80px;
  18. text-shadow: 0 0 0 transparent, 0 0 10px @text_glow;
  19. text-align: center;
  20. a {
  21. color: @test;
  22. }
  23. .less_demo_logo {
  24. background: transparent url(../images/logo.png) center center no-repeat;
  25. height:200px;
  26. @media only screen and (max-width: 960px) {
  27. float:left;
  28. width: 199px;
  29. }
  30. }
  31. p {
  32. @media only screen and (max-width: 960px) {
  33. float: left;
  34. }
  35. }
  36. .less_demo_logo {
  37. &:after {
  38. display: block;
  39. content: token("Site name from token in .less file: [site:name]");
  40. font-size: 20px;
  41. }
  42. }
  43. }