Not it provides a meaningful example. It also just includes pre-built css file for the example.master
parent
26852236cc
commit
fdc8d64fd9
@ -0,0 +1,190 @@
|
|||||||
|
.ps-container {
|
||||||
|
-ms-touch-action: none;
|
||||||
|
touch-action: none;
|
||||||
|
overflow: hidden !important;
|
||||||
|
-ms-overflow-style: none; }
|
||||||
|
@supports (-ms-overflow-style: none) {
|
||||||
|
.ps-container {
|
||||||
|
overflow: auto !important; } }
|
||||||
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||||
|
.ps-container {
|
||||||
|
overflow: auto !important; } }
|
||||||
|
.ps-container.ps-active-x > .ps-scrollbar-x-rail,
|
||||||
|
.ps-container.ps-active-y > .ps-scrollbar-y-rail {
|
||||||
|
display: block;
|
||||||
|
background-color: transparent; }
|
||||||
|
.ps-container.ps-in-scrolling {
|
||||||
|
pointer-events: none; }
|
||||||
|
.ps-container.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-container.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-container > .ps-scrollbar-x-rail {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
opacity: 0;
|
||||||
|
transition: background-color .2s linear, opacity .2s linear;
|
||||||
|
bottom: 0px;
|
||||||
|
/* there must be 'bottom' for ps-scrollbar-x-rail */
|
||||||
|
height: 15px; }
|
||||||
|
.ps-container > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
background-color: #aaa;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
|
||||||
|
bottom: 2px;
|
||||||
|
/* there must be 'bottom' for ps-scrollbar-x */
|
||||||
|
height: 6px; }
|
||||||
|
.ps-container > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x, .ps-container > .ps-scrollbar-x-rail:active > .ps-scrollbar-x {
|
||||||
|
height: 11px; }
|
||||||
|
.ps-container > .ps-scrollbar-y-rail {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
opacity: 0;
|
||||||
|
transition: background-color .2s linear, opacity .2s linear;
|
||||||
|
right: 0;
|
||||||
|
/* there must be 'right' for ps-scrollbar-y-rail */
|
||||||
|
width: 15px; }
|
||||||
|
.ps-container > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
background-color: #aaa;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
|
||||||
|
right: 2px;
|
||||||
|
/* there must be 'right' for ps-scrollbar-y */
|
||||||
|
width: 6px; }
|
||||||
|
.ps-container > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y, .ps-container > .ps-scrollbar-y-rail:active > .ps-scrollbar-y {
|
||||||
|
width: 11px; }
|
||||||
|
.ps-container:hover.ps-in-scrolling {
|
||||||
|
pointer-events: none; }
|
||||||
|
.ps-container:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-container:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-container:hover > .ps-scrollbar-x-rail,
|
||||||
|
.ps-container:hover > .ps-scrollbar-y-rail {
|
||||||
|
opacity: 0.6; }
|
||||||
|
.ps-container:hover > .ps-scrollbar-x-rail:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container:hover > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-container:hover > .ps-scrollbar-y-rail:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-container:hover > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
this file is built into custom-theme.css
|
||||||
|
|
||||||
|
$ node-sass examples/custom-theme.scss -o examples/
|
||||||
|
*/
|
||||||
|
.ps-theme-square {
|
||||||
|
-ms-touch-action: none;
|
||||||
|
touch-action: none;
|
||||||
|
overflow: hidden !important;
|
||||||
|
-ms-overflow-style: none; }
|
||||||
|
@supports (-ms-overflow-style: none) {
|
||||||
|
.ps-theme-square {
|
||||||
|
overflow: auto !important; } }
|
||||||
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||||
|
.ps-theme-square {
|
||||||
|
overflow: auto !important; } }
|
||||||
|
.ps-theme-square.ps-active-x > .ps-scrollbar-x-rail,
|
||||||
|
.ps-theme-square.ps-active-y > .ps-scrollbar-y-rail {
|
||||||
|
display: block;
|
||||||
|
background-color: transparent; }
|
||||||
|
.ps-theme-square.ps-in-scrolling {
|
||||||
|
pointer-events: none; }
|
||||||
|
.ps-theme-square.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-theme-square.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-x-rail {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
opacity: 0;
|
||||||
|
transition: background-color .2s linear, opacity .2s linear;
|
||||||
|
bottom: 0;
|
||||||
|
/* there must be 'bottom' for ps-scrollbar-x-rail */
|
||||||
|
height: 10px; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
background-color: #aaa;
|
||||||
|
border-radius: 0;
|
||||||
|
transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
|
||||||
|
bottom: 0;
|
||||||
|
/* there must be 'bottom' for ps-scrollbar-x */
|
||||||
|
height: 10px; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x, .ps-theme-square > .ps-scrollbar-x-rail:active > .ps-scrollbar-x {
|
||||||
|
height: 10px; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-y-rail {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
opacity: 0;
|
||||||
|
transition: background-color .2s linear, opacity .2s linear;
|
||||||
|
right: 0;
|
||||||
|
/* there must be 'right' for ps-scrollbar-y-rail */
|
||||||
|
width: 10px; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
position: absolute;
|
||||||
|
/* please don't change 'position' */
|
||||||
|
background-color: #aaa;
|
||||||
|
border-radius: 0;
|
||||||
|
transition: background-color .2s linear, height .2s linear, width .2s ease-in-out, border-radius .2s ease-in-out;
|
||||||
|
right: 0;
|
||||||
|
/* there must be 'right' for ps-scrollbar-y */
|
||||||
|
width: 10px; }
|
||||||
|
.ps-theme-square > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y, .ps-theme-square > .ps-scrollbar-y-rail:active > .ps-scrollbar-y {
|
||||||
|
width: 10px; }
|
||||||
|
.ps-theme-square:hover.ps-in-scrolling {
|
||||||
|
pointer-events: none; }
|
||||||
|
.ps-theme-square:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square:hover.ps-in-scrolling.ps-x > .ps-scrollbar-x-rail > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-theme-square:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square:hover.ps-in-scrolling.ps-y > .ps-scrollbar-y-rail > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-x-rail,
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-y-rail {
|
||||||
|
opacity: 0.6; }
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-x-rail:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-x-rail:hover > .ps-scrollbar-x {
|
||||||
|
background-color: #999; }
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-y-rail:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
opacity: 0.9; }
|
||||||
|
.ps-theme-square:hover > .ps-scrollbar-y-rail:hover > .ps-scrollbar-y {
|
||||||
|
background-color: #999; }
|
@ -1,11 +1,23 @@
|
|||||||
@import '../src/css/main';
|
@import '../src/css/main';
|
||||||
|
|
||||||
.ps-theme-custom-theme {
|
/*
|
||||||
|
this file is built into custom-theme.css
|
||||||
|
|
||||||
|
$ node-sass examples/custom-theme.scss -o examples/
|
||||||
|
*/
|
||||||
|
|
||||||
|
.ps-theme-square {
|
||||||
@include ps-container(map-merge($ps-theme-default, (
|
@include ps-container(map-merge($ps-theme-default, (
|
||||||
scrollbar-rail-scale-hover: 1.5,
|
border-radius: 0,
|
||||||
scrollbar-y-rail-width: 8px,
|
scrollbar-x-rail-bottom: 0,
|
||||||
scrollbar-y-width: 6px,
|
scrollbar-x-rail-height: 10px,
|
||||||
scrollbar-x-rail-height: 8px,
|
scrollbar-x-bottom: 0,
|
||||||
scrollbar-x-height: 6px
|
scrollbar-x-height: 10px,
|
||||||
|
scrollbar-x-hover-height: 10px,
|
||||||
|
scrollbar-y-rail-right: 0,
|
||||||
|
scrollbar-y-rail-width: 10px,
|
||||||
|
scrollbar-y-right: 0,
|
||||||
|
scrollbar-y-width: 10px,
|
||||||
|
scrollbar-y-hover-width: 10px,
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue