mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-06 04:35: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'
|
||||
'exports/**/*.coffee'
|
||||
'src/**/*.coffee'
|
||||
'src/**/*.cjsx'
|
||||
]
|
||||
build: [
|
||||
'build/tasks/**/*.coffee'
|
||||
|
@ -248,6 +249,8 @@ module.exports = (grunt) ->
|
|||
|
||||
lesslint:
|
||||
src: [
|
||||
'internal_packages/**/*.less'
|
||||
'dot-nylas/**/*.less'
|
||||
'static/**/*.less'
|
||||
]
|
||||
options:
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
|
||||
// TODO FIXME DRY From stylesheets/message-list.less
|
||||
.attachments-area {
|
||||
padding: 0px 15px 0px 15px;
|
||||
padding: 0 15px 0 15px;
|
||||
.attachment-file-wrap {
|
||||
padding-top: 5px;
|
||||
&.pending, &.started, &.progress {
|
||||
|
@ -304,7 +304,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
|
|||
position: absolute;
|
||||
|
||||
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;
|
||||
color: @text-color;
|
||||
|
||||
|
@ -317,7 +317,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
|
|||
&.toolbar-visible {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
margin-top: 0px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.toolbar-pointer {
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
margin: 0;
|
||||
|
||||
&.collapsed {
|
||||
height:0px;
|
||||
height: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,39 +4,35 @@
|
|||
@code-bg-color: #fcf4db;
|
||||
|
||||
.template-picker {
|
||||
.menu {
|
||||
.content-container {
|
||||
height:150px;
|
||||
overflow-y:scroll;
|
||||
}
|
||||
.menu {
|
||||
.content-container {
|
||||
height:150px;
|
||||
overflow-y:scroll;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.template-status-bar {
|
||||
background-color: @code-bg-color;
|
||||
color:darken(@code-bg-color, 70%);
|
||||
border: 1.5px solid darken(@code-bg-color, 10%);
|
||||
border-radius: @border-radius-small;
|
||||
padding-top: @padding-small-vertical;
|
||||
padding-bottom: @padding-small-vertical;
|
||||
padding-left: @padding-small-horizontal;
|
||||
padding-right: @padding-small-horizontal;
|
||||
font-size: @font-size-small;
|
||||
background-color: @code-bg-color;
|
||||
color: darken(@code-bg-color, 70%);
|
||||
border: 1.5px solid darken(@code-bg-color, 10%);
|
||||
border-radius: @border-radius-small;
|
||||
padding-top: @padding-small-vertical @padding-small-horizontal @padding-small-vertical @padding-small-horizontal;
|
||||
font-size: @font-size-small;
|
||||
}
|
||||
|
||||
.compose-body #contenteditable {
|
||||
code.var {
|
||||
font: inherit;
|
||||
padding:0;
|
||||
padding-left:2px;
|
||||
padding-right:2px;
|
||||
background-color: transparent;
|
||||
border-bottom: 1.5px solid darken(@code-bg-color, 10%);
|
||||
background-color: fade(@code-bg-color, 10%);
|
||||
&.empty {
|
||||
color:darken(@code-bg-color, 70%);
|
||||
border-bottom: 1px solid darken(@code-bg-color, 14%);
|
||||
background-color: @code-bg-color;
|
||||
}
|
||||
code.var {
|
||||
font: inherit;
|
||||
padding:0;
|
||||
padding-left:2px;
|
||||
padding-right:2px;
|
||||
border-bottom: 1.5px solid darken(@code-bg-color, 10%);
|
||||
background-color: fade(@code-bg-color, 10%);
|
||||
&.empty {
|
||||
color:darken(@code-bg-color, 70%);
|
||||
border-bottom: 1px solid darken(@code-bg-color, 14%);
|
||||
background-color: @code-bg-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
top: 50%;
|
||||
left: 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 {
|
||||
content: "";
|
||||
|
@ -133,7 +133,7 @@
|
|||
left: 9%;
|
||||
right: 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 {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import "ui-variables";
|
||||
|
||||
.full-contact-sidebar {
|
||||
padding: @spacing-standard;
|
||||
padding-bottom: 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import "ui-variables";
|
||||
|
||||
.internal-sidebar {
|
||||
padding: @spacing-standard;
|
||||
padding-bottom: 0;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import "ui-variables";
|
||||
|
||||
#tooltip-container {
|
||||
position: absolute;
|
||||
z-index: 999;
|
||||
|
@ -14,7 +16,7 @@
|
|||
// Position and display are set by React
|
||||
|
||||
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;
|
||||
color: @text-color;
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@ GO=0
|
|||
if [ ${1##*.} == "coffee" ]; then GO=1; fi
|
||||
if [ ${1##*.} == "cjsx" ]; then GO=1; 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