This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0
wcui/src/css/pager.scss

154 lines
3.9 KiB
SCSS

@charset "UTF-8";
/**
*
* @authors yutent (yutent@doui.cc)
* @date 2017-09-08 20:03:06
* @version $Id$
*/
@import "var.scss";
.do-pager {display:block;height:auto;text-align:center;font-size:14px;color: nth($cgr, 2);
&.mini {line-height:30px;
.button,.page {min-width:30px;height:30px}
}
&.medium {line-height:35px;
.button,.page {min-width:35px;height:35px}
}
&.large {line-height:40px;
.button,.page {min-width:40px;height:40px}
}
.button,.page {display:inline-block;border:0;color: nth($cgr, 2);text-decoration:none;cursor:pointer;vertical-align:top;font-size:14px;font-weight:100;appearance:none;}
.button {font-size:18px;}
.curr, .disabled {cursor:default;}
&.skin-1 {width:100%;
.page,
.button,
.disabled,
.curr {padding:0 8px;margin:0 3px;}
.curr {font-weight:bold;font-size:15px;}
.page.disabled {min-width:0;padding:0;background:none;color:nth($cgr, 2);
&:hover,&:active {background:none;}
}
.page.curr {background:none;color:nth($cgr, 2);
&:hover,&:active {background:none;}
}
.button[disabled] {cursor:not-allowed;}
.total-box,.input-box {display:inline-block;padding:0 8px;}
.input-box input {display:inline-block;width:40px;height:30px;padding:0 3px;font-size:14px;background:#fff;border:1px solid #ddd;text-align:center;}
}
&.skin-2 {float:right;width:auto;
.page,
.button,
.disabled,
.curr {float:left;margin:0;padding:0 5px;color:#fff;}
.page.disabled {display:none;}
.button[disabled] {cursor:not-allowed;}
.input-box {display:none;}
.total-box {float:left;display:inline-block;padding:0 8px;}
}
&.plain {
.page,.button {background:nth($cp, 2);color:nth($cgr, 2);
&:hover {background:nth($cp, 1)}
&:active {background:nth($cp, 3)}
}
.button[disabled] {background:nth($cp, 2);}
&.skin-2 .curr {background:nth($cp, 3)}
}
&.grey {
.page,.button {background:nth($cgr, 2);color: #fff;
&:hover {background:nth($cgr, 1)}
&:active {background:nth($cgr, 3)}
}
.button[disabled] {background:nth($cgr, 2);}
&.skin-2 .curr {background:nth($cgr, 3)}
}
&.dark {
.page,.button {background:nth($cd, 2);color: #fff;
&:hover {background:nth($cd, 2)}
&:active {background:nth($cd, 3)}
}
.button[disabled] {background:nth($cd, 2);}
&.skin-2 .curr {background:nth($cd, 3)}
}
&.red {
.page,.button {background:nth($cr, 2);color: #fff;
&:hover {background:nth($cr, 1)}
&:active {background:nth($cr, 3)}
}
.button[disabled] {background:nth($cr, 2);}
&.skin-2 .curr {background:nth($cr, 3)}
}
&.orange {
.page,.button {background:nth($co, 2);color: #fff;
&:hover {background:nth($co, 1)}
&:active {background:nth($co, 3)}
}
.button[disabled] {background:nth($co, 2);}
&.skin-2 .curr {background:nth($co, 3)}
}
&.green {
.page,.button {background:nth($cg, 2);color: #fff;
&:hover {background:nth($cg, 1)}
&:active {background:nth($cg, 3)}
}
.button[disabled] {background:nth($cg, 2);}
&.skin-2 .curr {background:nth($cg, 3)}
}
&.teal {
.page,.button {background:nth($ct, 2);color: #fff;
&:hover {background:nth($ct, 1)}
&:active {background:nth($ct, 3)}
}
.button[disabled] {background:nth($ct, 2);}
&.skin-2 .curr {background:nth($ct, 3)}
}
&.blue {
.page,.button {background:nth($cb, 2);color: #fff;
&:hover {background:nth($cb, 1)}
&:active {background:nth($cb, 3)}
}
.button[disabled] {background:nth($cb, 2);}
&.skin-2 .curr {background:nth($cb, 3)}
}
&.purple,.button {
.page {background:nth($cpp, 2);color: #fff;
&:hover {background:nth($cpp, 1)}
&:active {background:nth($cpp, 3)}
}
.button[disabled] {background:nth($cpp, 2);}
&.skin-2 .curr {background:nth($cpp, 3)}
}
}
wcui是一套基于`Web Components`的UI组件库, 宗旨是追求简单、实用、不花哨。
JavaScript 95.2%
CSS 4.8%