Skip to content

Commit

Permalink
Change styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Saira-A committed Oct 30, 2024
1 parent 323d6b3 commit 7c5e8f1
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,4 @@
}
}
}
}
.iiif-gallery-component {
.header {
input[type=range]::-moz-range-track {
width: 100px;
}

@-moz-document url-prefix() {
.btn {
&.size-up,
&.size-down {
margin-top: 4px;
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,26 @@
}

}

.iiif-gallery-component {

.header {
.btn {
&.size-up,
&.size-down {
&:focus {
border: 1px solid @link-color;
}
}
}

@supports (-moz-appearance: none) {
.btn {
&.size-up,
&.size-down {
margin-top: 4px;
}
}
}
}
}
125 changes: 61 additions & 64 deletions src/content-handlers/iiif/modules/uv-shared-module/css/range.less
Original file line number Diff line number Diff line change
@@ -1,68 +1,65 @@
.uv {

/* WebKit */

input[type=range] {
-webkit-appearance: none;
}

input[type=range]::-webkit-slider-runnable-track {
width: 300px;
height: 5px;
background: @gray-light;
border: none;
}

input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: @gray;
margin-top: -5px;
}

input[type=range]:focus {
outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
background: @gray-light;
}

/* Firefox */

input[type=range] {
/*required for proper track sizing in FF*/
width: 300px;
}

input[type=range]::-moz-range-track {
width: 300px;
height: 5px;
background: #ddd;
border: none;
}

input[type=range]::-moz-range-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: @gray;
}

/*hide the outline behind the border*/
input[type=range]:-moz-focusring {
outline: 1px solid white;
outline-offset: -1px;
}

input[type=range]:focus::-moz-range-track {
background: #ccc;
}

@track-color: @gray-light;
@thumb-color: @gray;
@thumb-border: @text-color;
@focus-border: 2px solid @link-color;
@focus-track-color: lighten(@track-color, 10%);

input[type="range"] {
-webkit-appearance: none;
appearance: none;
background-color: transparent;
cursor: pointer;
}

/* WebKit */
input[type="range"]::-webkit-slider-runnable-track {
height: 0.25rem;
background-color: @track-color;
border: none;
border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
height: 1rem;
width: 1rem;
margin-top: -5px;
background-color: @thumb-color;
border: 2px solid @thumb-border;
border-radius: 999px;
}

input[type="range"]:focus::-webkit-slider-thumb {
margin-top: -7px;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
background-color: @focus-track-color;
border: @focus-border;
}

/* Firefox */
input[type="range"]::-moz-range-track {
height: 0.25rem;
background-color: @track-color;
border: none;
border-radius: 999px;
}

input[type="range"]::-moz-range-thumb {
height: 1rem;
width: 1rem;
margin-top: -0.5rem;
background-color: @thumb-color;
border: 2px solid @thumb-border;
border-radius: 999px;
}

input[type="range"]:focus::-moz-range-track {
background-color: @focus-track-color;
border: @focus-border;
}

/* IE */

Expand Down
19 changes: 0 additions & 19 deletions src/content-handlers/iiif/modules/uv-shared-module/css/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,3 @@
}
}

.iiif-gallery-component {

.header {
.btn {
&.size-up,
&.size-down {
&:focus {
border: 1px solid @link-color;
}
}
}

input[type="range"] {
&:focus {
border: 2px double @link-color;
}
}
}
}

0 comments on commit 7c5e8f1

Please sign in to comment.