mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 12:44:30 +08:00
update linter to look at all less files
Test Plan: script/grunt lint Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1549
This commit is contained in:
parent
92cf2d520c
commit
57fc6d61e5
9 changed files with 40 additions and 35 deletions
|
@ -208,6 +208,7 @@ module.exports = (grunt) ->
|
||||||
'dot-nylas/**/*.coffee'
|
'dot-nylas/**/*.coffee'
|
||||||
'exports/**/*.coffee'
|
'exports/**/*.coffee'
|
||||||
'src/**/*.coffee'
|
'src/**/*.coffee'
|
||||||
|
'src/**/*.cjsx'
|
||||||
]
|
]
|
||||||
build: [
|
build: [
|
||||||
'build/tasks/**/*.coffee'
|
'build/tasks/**/*.coffee'
|
||||||
|
@ -248,6 +249,8 @@ module.exports = (grunt) ->
|
||||||
|
|
||||||
lesslint:
|
lesslint:
|
||||||
src: [
|
src: [
|
||||||
|
'internal_packages/**/*.less'
|
||||||
|
'dot-nylas/**/*.less'
|
||||||
'static/**/*.less'
|
'static/**/*.less'
|
||||||
]
|
]
|
||||||
options:
|
options:
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
|
|
||||||
// TODO FIXME DRY From stylesheets/message-list.less
|
// TODO FIXME DRY From stylesheets/message-list.less
|
||||||
.attachments-area {
|
.attachments-area {
|
||||||
padding: 0px 15px 0px 15px;
|
padding: 0 15px 0 15px;
|
||||||
.attachment-file-wrap {
|
.attachment-file-wrap {
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
&.pending, &.started, &.progress {
|
&.pending, &.started, &.progress {
|
||||||
|
@ -304,7 +304,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0px 10px 20px rgba(0,0,0,0.19), inset 0px 0px 1px rgba(0,0,0,0.5);
|
box-shadow: 0 10px 20px rgba(0,0,0,0.19), inset 0 0 1px rgba(0,0,0,0.5);
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
|
||||||
&.toolbar-visible {
|
&.toolbar-visible {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
margin-top: 0px;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-pointer {
|
.toolbar-pointer {
|
||||||
|
|
|
@ -151,7 +151,7 @@
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
height:0px;
|
height: 0;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,39 +4,35 @@
|
||||||
@code-bg-color: #fcf4db;
|
@code-bg-color: #fcf4db;
|
||||||
|
|
||||||
.template-picker {
|
.template-picker {
|
||||||
.menu {
|
.menu {
|
||||||
.content-container {
|
.content-container {
|
||||||
height:150px;
|
height:150px;
|
||||||
overflow-y:scroll;
|
overflow-y:scroll;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.template-status-bar {
|
.template-status-bar {
|
||||||
background-color: @code-bg-color;
|
background-color: @code-bg-color;
|
||||||
color:darken(@code-bg-color, 70%);
|
color: darken(@code-bg-color, 70%);
|
||||||
border: 1.5px solid darken(@code-bg-color, 10%);
|
border: 1.5px solid darken(@code-bg-color, 10%);
|
||||||
border-radius: @border-radius-small;
|
border-radius: @border-radius-small;
|
||||||
padding-top: @padding-small-vertical;
|
padding-top: @padding-small-vertical @padding-small-horizontal @padding-small-vertical @padding-small-horizontal;
|
||||||
padding-bottom: @padding-small-vertical;
|
font-size: @font-size-small;
|
||||||
padding-left: @padding-small-horizontal;
|
|
||||||
padding-right: @padding-small-horizontal;
|
|
||||||
font-size: @font-size-small;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.compose-body #contenteditable {
|
.compose-body #contenteditable {
|
||||||
code.var {
|
code.var {
|
||||||
font: inherit;
|
font: inherit;
|
||||||
padding:0;
|
padding:0;
|
||||||
padding-left:2px;
|
padding-left:2px;
|
||||||
padding-right:2px;
|
padding-right:2px;
|
||||||
background-color: transparent;
|
border-bottom: 1.5px solid darken(@code-bg-color, 10%);
|
||||||
border-bottom: 1.5px solid darken(@code-bg-color, 10%);
|
background-color: fade(@code-bg-color, 10%);
|
||||||
background-color: fade(@code-bg-color, 10%);
|
&.empty {
|
||||||
&.empty {
|
color:darken(@code-bg-color, 70%);
|
||||||
color:darken(@code-bg-color, 70%);
|
border-bottom: 1px solid darken(@code-bg-color, 14%);
|
||||||
border-bottom: 1px solid darken(@code-bg-color, 14%);
|
background-color: @code-bg-color;
|
||||||
background-color: @code-bg-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%) translateY(-50%);
|
transform: translateX(-50%) translateY(-50%);
|
||||||
box-shadow: 0px -4px 4px 0px rgba(255, 255, 255, 0.75), inset 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 -4px 4px 0 rgba(255, 255, 255, 0.75), inset 0 4px 4px 0 rgba(0, 0, 0, 0.08);
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "";
|
content: "";
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
left: 9%;
|
left: 9%;
|
||||||
right: 9%;
|
right: 9%;
|
||||||
bottom: 9%;
|
bottom: 9%;
|
||||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "ui-variables";
|
||||||
|
|
||||||
.full-contact-sidebar {
|
.full-contact-sidebar {
|
||||||
padding: @spacing-standard;
|
padding: @spacing-standard;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "ui-variables";
|
||||||
|
|
||||||
.internal-sidebar {
|
.internal-sidebar {
|
||||||
padding: @spacing-standard;
|
padding: @spacing-standard;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import "ui-variables";
|
||||||
|
|
||||||
#tooltip-container {
|
#tooltip-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
@ -14,7 +16,7 @@
|
||||||
// Position and display are set by React
|
// Position and display are set by React
|
||||||
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: 0px 10px 20px rgba(0,0,0,0.19), inset 0px 0px 1px rgba(0,0,0,0.5);
|
box-shadow: 0 10px 20px rgba(0,0,0,0.19), inset 0 0 1px rgba(0,0,0,0.5);
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ GO=0
|
||||||
if [ ${1##*.} == "coffee" ]; then GO=1; fi
|
if [ ${1##*.} == "coffee" ]; then GO=1; fi
|
||||||
if [ ${1##*.} == "cjsx" ]; then GO=1; fi
|
if [ ${1##*.} == "cjsx" ]; then GO=1; fi
|
||||||
if [ $GO != "1" ]; then exit 0; fi
|
if [ $GO != "1" ]; then exit 0; fi
|
||||||
script/grunt coffeelint:target --target "$*" || true
|
script/grunt lint:target --target "$*" || true
|
||||||
|
|
Loading…
Add table
Reference in a new issue