index.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. // var a = 1;
  2. /*sasa*/
  3. // @import url(rest.css);
  4. @import './rest.scss';
  5. @mixin flower {
  6. width: 200px;
  7. height: 100px;
  8. border: 2px solid #0f0;
  9. display: flex;
  10. align-items: center;
  11. justify-content: center;
  12. }
  13. @mixin news1($x) {
  14. border-radius: $x;
  15. }
  16. // @mixin news2($a:10px,$b:10px,$c:10px,$d:purple) {
  17. // box-shadow: $a $b $c $d;
  18. // }
  19. @mixin news2($aaa...) {
  20. box-shadow: $aaa;
  21. }
  22. .sun {
  23. width: 30px;
  24. height: 30px;
  25. border-radius: 20px;
  26. border: 1px solid #00f;
  27. }
  28. %rain {
  29. width: 30px;
  30. height: 30px;
  31. border-radius: 20px;
  32. border: 1px solid #0ff;
  33. }
  34. $aa: #f00;
  35. $bb: 40;
  36. $cc: lighter !default;
  37. h1 {
  38. color: $aa;
  39. font-size: $bb + px;
  40. font-weight: $cc;
  41. $ab: 800 !global;
  42. }
  43. p {
  44. color: $aa;
  45. font-weight: $ab;
  46. @include flower;
  47. @include news1(50%);
  48. @include news2(10px 20px 10px aqua);
  49. }
  50. .main {
  51. ul {
  52. list-style: none;
  53. li {
  54. &:first-child a {
  55. color: #ff0;
  56. // @extend .sun;
  57. // @extend %rain;
  58. }
  59. a {
  60. text-decoration: none;
  61. // font-size: 30px;
  62. // font-weight: bold;
  63. font: {
  64. size: 25px;
  65. weight: bold;
  66. }
  67. &:hover {
  68. color: $aa;
  69. }
  70. }
  71. // a:hover {}
  72. }
  73. }
  74. }
  75. // ul li:first-child a {
  76. // color: #ff0;
  77. // }