Andrey Sitnik, Evil Martians
.block {
&_title {
font-size: 200%;
}
}
.block_title {
font-size: 200%;
}
:fullscreen {
}
:-webkit-full-screen {
}
:-moz-full-screen {
}
:-ms-fullscreen {
}
:fullscreen {
}
.foo {
@mixin transition(width 1s);
@mixin rtl-float(left);
}
7. Application | HTTP, FTP, SMTP, SSH, TELNET |
6. Presentation | HTML, CSS, GIF |
5. Session | RPC, PAP, SSL, SQL |
4. Transport | TCP, UDP, NETBEUI |
3. Network | IPv4, IPv6, IPsec, AppleTalk, ICMP |
2. Data link | PPP, IEEE 802.2, L2TP, MAC, LLDP |
1. Physical | Ethernet physical layer, DSL, USB, ISDN, DOCSIS |
var React = require('react');
module.exports = React.createClass({
…
});
* {
box-sizing: border-box;
}
.title {
font-size: 30px;
}
logo/
logo.js
logo.css
logo.svg
header/
header.js
header.css
@use postcss-center;
.logo {
top: center;
}
/* logo.css */
.name {
font-size: 20px;
}
/* header.css */
.name {
font-size: 16px;
}
import styles from './logo.css';
class Logo extends React.Component {
render() {
return <div className={ styles.name }></div>;
}
}
- styles = read_json('components/logo/logo.css.json')
div( class=styles['logo'] )
div( class=styles['name'] )
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
.logo {
}
.name {
}
.name.is-big {
}
.logo {
all: initial;
}
.name {
all: initial;
}
.name.is-big {
}
autoreset({
reset: {
'box-sizing': 'border-box',
'all': 'initial'
}
});
<Header>
color: white
<Logo>
background: white
</Logo>
</Header>
h2 {
color: red;
}
div {
margin-top: 10px;
}
.logo {
all: initial;
}
.logo {
color: black;
background: white;
box-sizing: content-box;
line-height: normal;
text-shadow: none;
vertical-align: baseline;
white-space: normal;
/* Page width */
@media (max-width: 600px) {
.photo {
width: auto;
}
}
.photo:container(width <= 600px) {
width: auto;
}
.photo:container(background-color lightness < 20%) {
color: white;
}
<script src="cq-prolyfill.min.js" async></script>
postcss-use
postcss-modules
postcss-autoreset
all: inital
and postcss-cssnext
cq-prolyfill
Legacy project:
New project:
.pipe( sass() )
.pipe( postcss([
...plugins
]) )
.pipe( postcss([
precss,
...plugins
]) )