Each file should import its dependent file(s) if using vars or classes from them

This commit is contained in:
Thomas Cazade 2017-12-05 23:44:51 +01:00
parent a6b5efb55f
commit 5333ca8cbe
13 changed files with 43 additions and 11 deletions

View file

@ -1,3 +1,6 @@
@import './colors.less';
@import './borders.less';
.alert{
.border;
padding: 15px;
@ -15,4 +18,4 @@
}
}
.make-alert-color-classes();
.make-alert-color-classes();

View file

@ -1,5 +1,6 @@
article {
@import './colors.less';
article {
.article-title {
font-size: 3rem;
}

View file

@ -1,3 +1,6 @@
@import './colors.less';
@import './borders.less';
.badge {
.border;
@ -22,4 +25,4 @@
}
}
.make-badge-color-classes();
.make-badge-color-classes();

View file

@ -1,3 +1,5 @@
@import './colors.less';
.border {
border: 2px solid @primary;
}

View file

@ -1,3 +1,8 @@
@import './colors.less';
@import './shadows.less';
@import './borders.less';
@import './forms.less'; // .disabled
button, .paper-btn, [type="button"] {
.shadow;
align-self:center;

View file

@ -1,3 +1,6 @@
@import './colors.less';
@import './shadows.less';
.card {
.shadow;
.shadow-hover;
@ -55,4 +58,4 @@
border: 0;
border-radius: 0;
}
}
}

View file

@ -1,3 +1,5 @@
@import './colors.less';
code {
padding: 2px 4px;
font-size: 80%;
@ -25,4 +27,4 @@ pre {
border-radius: 3px;
overflow-x: auto;
white-space: pre-wrap;
}
}

View file

@ -1,3 +1,5 @@
@import './colors.less';
@large-screen: ~"screen and (max-width: 1200px)";
@medium-screen: ~"screen and (max-width: 992px)";
@small-screen: ~"screen and (max-width: 768px)";
@ -53,4 +55,3 @@ hr:after {
margin-bottom: 0;
}
}

View file

@ -1,7 +1,9 @@
@import './colors.less';
@import url('https://fonts.googleapis.com/css?family=Neucha|Patrick+Hand+SC');
@global-font-size: 20px;
@header-font: 'Patrick Hand SC';
@header-font: 'Patrick Hand SC';
@body-font: 'Neucha';
@font-color: @primary;
@ -43,4 +45,4 @@ h6 {
}
.text-right {
text-align: right;
}
}

View file

@ -1,3 +1,5 @@
@import './colors.less';
input, select, textarea {
display: block;
background:transparent;
@ -100,4 +102,4 @@ input, select, textarea {
fieldset.form-group {
border: none;
padding: 0;
}
}

View file

@ -1,3 +1,6 @@
@import './colors.less';
@import './borders.less';
img {
max-width: 100%;
height: auto;
@ -20,4 +23,4 @@ img {
border: 0;
border-radius: 0;
}
}
}

View file

@ -1,3 +1,6 @@
@import './colors.less';
@import './borders.less';
// Core popovers
[popover-top],
[popover-right],

View file

@ -1,3 +1,5 @@
@import './colors.less';
table {
box-sizing: border-box;
width: 100%;
@ -28,4 +30,4 @@ table {
&.table-alternating tbody tr:nth-of-type(even) {
color: lighten(@primary, 25%);
}
}
}