markdown 上海社会科学院

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 上海社会科学院相关的知识,希望对你有一定的参考价值。

### SASS Syntactically Awesome Stylesheets
* Easier to write SASS than CSS
* Compiles to CSS for browsers to interpret

### Converting to SASS:

```
sass main.sccc main.css
```

* sass command takes 2 args:
    * the input: main.scss
    * the location of where to put that output: main.css

### Nesting selectors:
* : placing selectors within the scope of another selector
* Selectors that are nested are referred to as children
* Selctors that contain other selectors are known as parents

```sass
.parent {
  color: blue;
  .child {
    font-size: 12px;
  }
}
// Compiles to the following CSS:
.parent {
  color: blue;
}

.parent .child {
  font-size: 12px;
}
```

* You can also nest CSS PROPERTIES! using ':' before after the suffix of the property

```
.parent {
  font : {
    family: Roboto;
    size: 12px;
    decoration: none;
  }
}

// Which converts to the following CSS:
.parent {
  font-family: ;
  font-size: ;
  font-decoration: ;
}
```

* Variables in SASS are denoted $

```
$trans-white = rgba(255,255,255,0.3);
```

#### Sassy Datatypes:
* Numbers: 8.11, 12 and 10px
* Strings of texts: "potatoe", 'tomato', span
* Booleans: true, false
* null: an empty value
* Lists: can be separated by spaces or commas

```
1.5em Helvetica bold;
```

* Maps: similar to lists but are referenced as a hash, with a key value pair

```
(key1: value1, key2: value2);
```

#### Using the '&' operator in nesting a pseudo-element:

```
.notecard {
  &:hover {
    @include transform (rotatey(-180deg));
  }
}
// Compiles into this CSS
.notecard:hover {
  transform: (rotatey(-180deg));
}
```

以上是关于markdown 上海社会科学院的主要内容,如果未能解决你的问题,请参考以下文章

text 上海社会科学院

text 上海社会科学院

html 上海社会科学院

scss 上海社会科学院

scss 上海社会科学院,inputs.scss

scss 上海社会科学院の混入を使用して大众の値を自动计算する