Skip to content

Commit

Permalink
Portlets: scss-lint
Browse files Browse the repository at this point in the history
copy .scss-lint.yml from equella_theme repo
clean up a few SCSS files to reduce linting warnings
  • Loading branch information
phette23 committed Aug 10, 2015
1 parent 4e3b9c7 commit d262fcd
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 49 deletions.
17 changes: 17 additions & 0 deletions .scss-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
linters:
# so many color references, some of which are fine (e.g. black, white)
# we'll ignore this but could activatve once the code base is cleaner
ColorVariable:
enabled: false
Comment:
enabled: false
# IDs are sadly necessary when customizing vendor sites
IdSelector:
enabled: false
# many selectors target EQUELLA HTML where we don't control format
# of IDs & class names, unable to meet this standard
SelectorFormat:
enabled: false

Indentation:
width: 4
23 changes: 1 addition & 22 deletions Portlets/dashboard-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,12 @@ body #helpAndOptions {
}

.box_content {
border-top: 0px !important;
border-top: 0 !important;
padding-top: 0;
}

// END Fixing Equella Styles

// gallery container & images
.imgContainer {
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
display: none;
width: 100%;

&.active img {
display: none;
}

&.active {
display: block !important;

a img:hover {
opacity: .8;
}
}
}

// collection tabs for gallery
#mainTabs {
box-sizing: border-box;
Expand Down
29 changes: 25 additions & 4 deletions Portlets/dashboard-non-cca.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
@import 'dashboard-base.scss';
@import 'quick-search.scss';
@import 'tour.scss';
@import 'campus-planning.scss';
@import 'dashboard-base';
@import 'quick-search';
@import 'tour';
@import 'campus-planning';

// gallery container & images
.imgContainer {
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
display: none;
width: 100%;

&.active {
display: block !important;

a img:hover {
opacity: .8;
}

img {
display: none;
}
}
}
6 changes: 3 additions & 3 deletions Portlets/dashboard-student-work.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import 'dashboard-base.scss';
@import 'quick-search.scss';
@import 'tour.scss';
@import 'dashboard-base';
@import 'quick-search';
@import 'tour';
20 changes: 0 additions & 20 deletions Portlets/server-js-test.js

This file was deleted.

0 comments on commit d262fcd

Please sign in to comment.