@Nathandm
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
height: 100%
}
@font-face {
font-family: 'Lato web';
font-style: normal;
font-weight: 400;
src: url('fonts/Lato-Regular.eot');
src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/Lato-Regular.woff') format('woff'), url('fonts/Lato-Regular.ttf') format('truetype'), url('fonts/Lato-Regular.svg#latoregular') format('svg');
}
body {
font-family: 'Lato web', sans-serif;
font-size: 100%;
color: #202020;
background: url(_state.data:image/png;
base64, iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAOElEQVQ4y2N4Qz3AAMSfP73DJCEIPxuNZBh112Bz14cPEISPjdVdg9Ws0fAaDa8hHF6j5dcQcxcA3DHODs/IAR8AAAAASUVORK5CYII=) repeat;
line-height: 1.5;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* $COLOR SCHEME */
.main-header {
border-top: 5px solid #3a3;
border-top: 1px dashed #3a3;
}
.intro-wrap {
background-color: #3a3;
color: #fff;
}
.intro .h2, .intro .mega, .intro h1, .intro h2 {
color: #fff;
}
a {
color: #2a2;
color: #080;
color: #880;
text-decoration: none;
border-bottom: 1px dotted #AA0;
}
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body, html {
height: 100%
}
@font-face {
font-family: 'Lato web';
font-style: normal;
font-weight: 400;
src: url('fonts/Lato-Regular.eot');
src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'), url('fonts/Lato-Regular.woff') format('woff'), url('fonts/Lato-Regular.ttf') format('truetype'), url('fonts/Lato-Regular.svg#latoregular') format('svg');
}
body {
font-family: 'Lato web', sans-serif;
font-size: 100%;
color: #202020;
background: url(_state.data:image/png;
base64, iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAOElEQVQ4y2N4Qz3AAMSfP73DJCEIPxuNZBh112Bz14cPEISPjdVdg9Ws0fAaDa8hHF6j5dcQcxcA3DHODs/IAR8AAAAASUVORK5CYII=) repeat;
line-height: 1.5;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
/* $COLOR SCHEME */
.main-header {
border-top: 5px solid #3a3;
border-top: 1px dashed #3a3;
}
.intro-wrap {
background-color: #3a3;
color: #fff;
}
.intro .h2, .intro .mega, .intro h1, .intro h2 {
color: #fff;
}
a {
color: #2a2;
color: #080;
color: #880;
text-decoration: none;
border-bottom: 1px dotted #AA0;
}
.c-comments-modal
.c-comments-modal__filter-area
.c-comments-modal__main-area
.c-comments-modal__comments
.c-comments-modal__comment-box
.o-layout
.o-layout--rev
.o-layout--middle
.o-layout--bottom
.o-layout--small
.o-layout__item
.u-display-none
.u-display-block
.u-display-inline
.u-display-inline-block
.u-hide-visually
Naming Convention
.block__element--modifier {
...
}
<div class="media user premium">
<img src="" alt="" class="img photo avatar" />
<p class="body bio">...</p>
</div>
<div class="media user user--premium">
<img src="" alt="" class="media__img user__photo avatar" />
<p class="media__body user__bio">...</p>
</div>
@import "../../app";
$comment-modal__container-padding: 20px;
.comment-modal__container{
margin: 20px;
padding: $comment-modal__container-padding;
background: white;
}
.comment-modal__layout-sider {
background: white;
min-height: calc(100vh - #{$header-height});
form {
padding: 32px 12px 12px;
input {
width: 70%;
}
button, input {
border-radius: 0;
}
}
}
.ant-btn {
border-radius: 0;
}
Most people (and architectures) attempt to split CSS projects up into thematic groups.
??? cascade, inheritance or specificity ???
.c-comments-modal
.c-comments-modal__filter-area
.c-comments-modal__main-area
.c-comments-modal__comments
.c-comments-modal__comment-box
.o-layout
.o-layout--rev
.o-layout--middle
.o-layout--bottom
.o-layout--small
.o-layout__item
.u-display-none
.u-display-block
.u-display-inline
.u-display-inline-block
.u-hide-visually