Skip to content

Commit

Permalink
less to sass
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jul 8, 2017
1 parent 60e05ef commit 1f1fb0f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 54 deletions.
5 changes: 5 additions & 0 deletions themes/bootstrap3/scss/components/record.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
font-size: 95%;
vertical-align: initial;
}
.tagList .tag .badge {
margin: 0;
padding: 3px 7px;
font-weight: normal;
}
.tagList button .fa-close { margin-top: 3px; }
.tagList {
.tag {
Expand Down
5 changes: 0 additions & 5 deletions themes/sandal/scss/rtl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,5 @@ body.rtl {
float: right;
text-align: right;
}
.record-checkbox .checkbox-icon::before {
border-radius: 0;
border-top-right-radius: $border-radius-base;
border-bottom-right-radius: $border-radius-base;
}
}
}
17 changes: 13 additions & 4 deletions themes/sandal/scss/sandal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ header {
.comment .delete { font-size: $reduced-font-size; }
.comment-form .btn-primary { margin-top: .25rem; }
.tagList { line-height: 2rem; }
.tagList .tag .badge {
font-size: 12px;
font-weight: 900;
}
.tagList .tag .fa-close { margin: 0; }

/* --- Sidebar --- */
.sidebar {
Expand Down Expand Up @@ -218,3 +215,15 @@ header {
.sidebar > h4 { margin-left: 1rem; }

.jstree-facet .main .fa-check { margin-top: 3px; }
@media (min-width: 768px) and (max-width: 991px) {
.sidebar .facet {
flex-flow: wrap;

.text { width: 100%; }
.badge {
flex-grow: 1;
order: 1;
}
.exclude { order: 2; }
}
}
47 changes: 2 additions & 45 deletions themes/sandal/scss/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,10 @@
}
.list-group-item.title { color: $dark-gray; }
.bulkActionButtons {
.checkbox-select-all { display: none; }
label {
font-weight: 500;
color: $mid-gray;
}
label::before {
display: inline-block;
width: 28px;
margin-right: .5rem;
padding: .25rem;
font-size: $reduced-font-size;
font-family: "FontAwesome";
text-align: center;
color: $gray-light;
content: "\f00c";
cursor: pointer;
background-color: $gray-lighter;
border-radius: $border-radius-base;
}
:checked ~ label::before {
color: #fff;
background-color: $brand-primary;
}
}
.search-header.search-header { padding-top: 0; } // Duplicate to increase specificity
.search-stats > h2 { margin: 0; } // No results padding
Expand Down Expand Up @@ -115,44 +96,20 @@
width: 15%;
text-align: center;
}
.cart-link-icon { color: $dark-gray; }
@media (max-width: 767px) {
.result-link-icon,
.result .cart-link-icon {
width: 100%;
font-size: $result-sm-icon-size;
margin: 0;
padding-top: .5rem;
padding-bottom: .5rem;
font-size: $result-sm-icon-size;
color: $dark-gray;
}
.result-link-label,
.result .cart-link-label { display: none; }
}

.result .record-checkbox,
.grid-result .grid-checkbox {
flex-basis: $result-checkbox-width;
text-align: center;

input { display: none; }
.checkbox-icon::before {
display: block;
width: 100%;
height: $result-checkbox-height;
line-height: $result-checkbox-height;
font-family: "FontAwesome";
color: $gray-light;
content: "\f00c";
cursor: pointer;
background-color: $gray-lighter;
border-top-left-radius: $border-radius-base;
border-bottom-left-radius: $border-radius-base;
}
:checked ~ .checkbox-icon::before {
color: $search-row-selected-color;
background-color: $search-row-selected-bg;
}
}
.grid-result .grid-checkbox label { width: 100%; }
@media (min-width: 768px) {
.result { padding-right: 1rem; }
Expand Down

0 comments on commit 1f1fb0f

Please sign in to comment.