index.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. @function only($x) {
  35. @return $x *2;
  36. }
  37. $aa: #f00;
  38. $bb: 40;
  39. $cc: lighter !default;
  40. h1 {
  41. color: $aa;
  42. font-size: $bb + px;
  43. font-weight: $cc;
  44. $ab: 800 !global;
  45. }
  46. p {
  47. color: $aa;
  48. font-weight: $ab;
  49. @include flower;
  50. @include news1(50%);
  51. @include news2(10px 20px 10px aqua);
  52. }
  53. .main {
  54. width:(800px/2);
  55. // width: 2 * 400px;
  56. // width: 800px - 200px;
  57. // width: 500px + 200px;
  58. background: #f00 + #ff0;
  59. height: #{only(200)}px;
  60. border: 2px solid #000;
  61. ul {
  62. list-style: none;
  63. li {
  64. &:first-child a {
  65. color: #ff0;
  66. // @extend .sun;
  67. // @extend %rain;
  68. }
  69. a {
  70. text-decoration: none;
  71. // font-size: 30px;
  72. // font-weight: bold;
  73. font: {
  74. size: 25px;
  75. weight: bold;
  76. }
  77. &:hover {
  78. color: $aa;
  79. }
  80. }
  81. // a:hover {}
  82. }
  83. }
  84. }
  85. // ul li:first-child a {
  86. // color: #ff0;
  87. // }