Skip to content

Commit

Permalink
Use tabs for js/css/ss
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Oct 17, 2017
1 parent 6e70817 commit 4e31946
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ trim_trailing_whitespace = true
[{*.yml,package.json}]
indent_size = 2

[*.{ss,js,css}]
indent_size = 1
indent_style = tab

# The indent size used in the package.json file cannot be changed:
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
33 changes: 21 additions & 12 deletions css/tiled-gridfield.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,53 @@
display: block;
overflow: hidden;
}

.ss-tiled-gridfield tr.sortable-header {
display: none;
}

.ss-tiled-gridfield tbody.ss-gridfield-items tr {
display: block;
float: left;
position: relative;
min-width: 60px;
min-height: 60px;
}

.ss-tiled-gridfield tbody.ss-gridfield-items td {
border-top: none!important;
border-top: none!important;
}

.ss-tiled-gridfield tbody.ss-gridfield-items td.grid-field__col-compact .grid-field__icon-action:hover {
background: transparent;
background: transparent;
}

.ss-tiled-gridfield tbody.ss-gridfield-items td.grid-field__col-compact {
position: absolute;
top: 2px;
right: 2px;
right: 2px;
padding: 0;
margin: 0;
width: auto;
opacity: 0;
width: auto;
opacity: 0;
border: none;
transition: opacity 1s;
transition: opacity 1s;
}

.ss-tiled-gridfield tbody.ss-gridfield-items td.grid-field__col-compact a {
display: none;
display: none;
}

.ss-tiled-gridfield tbody.ss-gridfield-items td.grid-field__col-compact button {
margin: 0;
padding: 2px 0 0;
height: 20px;
margin: 0;
padding: 2px 0 0;
height: 20px;
}

.ss-tiled-gridfield tbody.ss-gridfield-items tr:hover td.grid-field__col-compact {
opacity: 0.5;
opacity: 0.5;
}

.ss-tiled-gridfield tbody.ss-gridfield-items tr:hover td.grid-field__col-compact:hover {
opacity: 1;
opacity: 1;
}

0 comments on commit 4e31946

Please sign in to comment.