e vor 1 Monat
Ursprung
Commit
c7e4f0eaff
7 geänderte Dateien mit 104 neuen und 0 gelöschten Zeilen
  1. 36 0
      18.scss/index.css
  2. 18 0
      18.scss/index.html
  3. 1 0
      18.scss/index.min.css
  4. 40 0
      18.scss/index.scss
  5. 4 0
      18.scss/reset.css
  6. 1 0
      18.scss/reset.min.css
  7. 4 0
      18.scss/reset.scss

+ 36 - 0
18.scss/index.css

@@ -0,0 +1,36 @@
+@charset "UTF-8";
+@import url("./reset.css");
+* {
+  margin: 0;
+  padding: 0;
+  list-style: none;
+  text-decoration: none;
+  box-sizing: border-box;
+}
+
+/*
+    今天天气真好
+*/
+h1 {
+  color: #f00;
+}
+
+ul {
+  width: 700px;
+  height: 700px;
+  border: 10px dashed #0f0;
+}
+
+ul li {
+  color: purple;
+  font-size: 30px;
+  font-weight: bold;
+}
+
+ul li:hover {
+  color: #ff0;
+}
+
+ul li:nth-child(2):hover {
+  color: #f00;
+}

+ 18 - 0
18.scss/index.html

@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>Document</title>
+    <link rel="stylesheet" href="./index.css">
+</head>
+<body>
+    <h1>Scss</h1>
+    <ul>
+        <li>你好我好大家好</li>
+        <li>你好我好大家好</li>
+        <li>你好我好大家好</li>
+        <li>你好我好大家好</li>
+    </ul>
+</body>
+</html>

+ 1 - 0
18.scss/index.min.css

@@ -0,0 +1 @@
+@import url("./reset.css");*{margin:0;padding:0;list-style:none;text-decoration:none;box-sizing:border-box}h1{color:#f00}ul{width:700px;height:700px;border:10px dashed lime}ul li{color:purple;font-size:30px;font-weight:bold}ul li:hover{color:#ff0}ul li:nth-child(2):hover{color:#f00}

+ 40 - 0
18.scss/index.scss

@@ -0,0 +1,40 @@
+$aa: #0f0;
+// var aa = 
+$box1: 3px !default;
+// @import './reset.scss';
+@import url('./reset.css');
+* {
+    margin: 0;
+    padding: 0;
+    list-style: none;
+    text-decoration: none;
+    box-sizing: border-box;
+}
+ 
+// 这是标题的标签
+/*
+    今天天气真好
+*/
+h1 {
+    color: #f00;
+    $box2: 10px !global;
+}
+
+ul {
+    width: 700px;
+    height: 700px;
+    border: $box2 dashed $aa;
+    li {
+        color: purple;
+        font: {
+            size: 30px;
+            weight: bold;
+        }
+        &:hover {
+              color: #ff0;
+        }
+        &:nth-child(2):hover {
+            color: #f00;
+        }
+    }
+}

+ 4 - 0
18.scss/reset.css

@@ -0,0 +1,4 @@
+h1 {
+  font-size: 35px;
+  font-weight: bold;
+}

+ 1 - 0
18.scss/reset.min.css

@@ -0,0 +1 @@
+h1{font-size:35px;font-weight:bold}

+ 4 - 0
18.scss/reset.scss

@@ -0,0 +1,4 @@
+h1 {
+    font-size: 35px;
+    font-weight: bold;
+}