123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469 |
- @import './variable.scss';
- .pi-bg-success {
- background-color: $pi-green;
- }
- .pi-bg-gray {
- background-color: $pi-light-gray;
- }
- .pi-bg-blue {
- background-color: $pi-blue;
- }
- .pi-bg-red {
- background-color: $pi-red;
- }
- .pi-gray {
- color: $pi-gray;
- }
- .pi-red {
- color: $pi-red;
- }
- .pi-blue {
- color: $pi-blue;
- }
- .pi-link-blue {
- color: $pi-blue;
- &:hover {
- text-decoration: underline;
- color: #0056b3;
- cursor: pointer;
- }
- }
- .pi-link-red {
- color: $pi-red;
- &:hover {
- text-decoration: underline;
- color: #af1d2a;
- cursor: pointer;
- }
- }
- .pi-flex {
- display: flex;
- }
- .pi-flex-wrap {
- @extend .pi-flex;
- flex-wrap: wrap;
- }
- .pi-flex-row {
- @extend .pi-flex;
- flex-direction: row;
- }
- .pi-flex-column {
- @extend .pi-flex;
- flex-direction: column;
- }
- .pi-flex-sub {
- flex: 1;
- }
- .pi-flex-twice {
- flex: 2;
- }
- .pi-flex-treble {
- flex: 3;
- }
- .pi-align-start {
- @extend .pi-flex;
- align-items: flex-start;
- }
- .pi-align-end {
- @extend .pi-flex;
- align-items: flex-end;
- }
- .pi-align-center {
- @extend .pi-flex;
- align-items: center;
- }
- .pi-align-stretch {
- @extend .pi-flex;
- align-items: stretch;
- }
- .pi-align-baseline {
- @extend .pi-flex;
- align-items: baseline;
- }
- .pi-self-start {
- @extend .pi-flex;
- align-self: flex-start;
- }
- .pi-self-center {
- @extend .pi-flex;
- align-self: flex-center;
- }
- .pi-self-end {
- @extend .pi-flex;
- align-self: flex-end;
- }
- .pi-self-stretch {
- @extend .pi-flex;
- align-self: stretch;
- }
- .pi-justify-start {
- @extend .pi-flex;
- justify-content: flex-start;
- }
- .pi-justify-end {
- @extend .pi-flex;
- justify-content: flex-end;
- }
- .pi-justify-center {
- @extend .pi-flex;
- justify-content: center;
- }
- .pi-justify-between {
- @extend .pi-flex;
- justify-content: space-between;
- }
- .pi-justify-around {
- @extend .pi-flex;
- justify-content: space-around;
- }
- .pi-flex-row-center {
- @extend .pi-flex-row;
- @extend .pi-justify-center;
- @extend .pi-align-center;
- }
- .pi-flex-column-center {
- @extend .pi-flex-column;
- @extend .pi-justify-center;
- @extend .pi-align-center;
- }
- .pi-width-100P {
- width: 100%;
- }
- .pi-height-100P {
- height: 100%;
- }
- /* 预设常用样式 */
- @for $i from 1 through 100 {
- /* font-size */
- .pi-fz-#{$i} {
- font-size: 1px * $i;
- }
- /* padding */
- .pi-pd-#{$i} {
- padding: 1px * $i;
- }
- .pi-pd-top-#{$i} {
- padding-top: 1px * $i;
- }
- .pi-pd-right-#{$i} {
- padding-right: 1px * $i;
- }
- .pi-pd-bottom-#{$i} {
- padding-bottom: 1px * $i;
- }
- .pi-pd-left-#{$i} {
- padding-left: 1px * $i;
- }
- .pi-pd-tb-#{$i} {
- padding-top: 1px * $i;
- padding-bottom: 1px * $i;
- }
- .pi-pd-lr-#{$i} {
- padding-right: 1px * $i;
- padding-left: 1px * $i;
- }
- /* margin */
- .pi-mg-#{$i} {
- margin: 1px * $i;
- }
- .pi-mg-top-#{$i} {
- margin-top: 1px * $i;
- }
- .pi-mg-right-#{$i} {
- margin-right: 1px * $i;
- }
- .pi-mg-bottom-#{$i} {
- margin-bottom: 1px * $i;
- }
- .pi-mg-left-#{$i} {
- margin-left: 1px * $i;
- }
- .pi-mg-tb-#{$i} {
- margin-top: 1px * $i;
- margin-bottom: 1px * $i;
- }
- .pi-mg-lr-#{$i} {
- margin-right: 1px * $i;
- margin-left: 1px * $i;
- }
- // width & height
- .pi-width-#{$i} {
- width: 1px * $i;
- }
- .pi-height-#{$i} {
- height: 1px * $i;
- }
- // radius
- .pi-radius-#{$i} {
- border-radius: 1px * $i;
- }
- // line-height
- .pi-lh-#{$i} {
- line-height: 1px * $i;
- }
- }
- .pi-text-center {
- text-align: center;
- }
- .pi-text-left {
- text-align: left;
- }
- .pi-text-right {
- text-align: right;
- }
- /*************************
- 定位
- **************************/
- .pi-absolute {
- position: absolute;
- }
- .pi-relative {
- position: relative;
- }
- .pi-fixed {
- position: fixed;
- }
- // absolute
- .pi-absolute-top {
- @extend .pi-absolute;
- top: 0;
- left: 0;
- z-index: 2;
- }
- .pi-absolute-center {
- @extend .pi-absolute;
- top: 50%;
- left: 50%;
- z-index: 2;
- transform: translate(-50%, -50%);
- }
- .pi-absolute-lt {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- }
- .pi-absolute-rt {
- position: absolute;
- top: 0;
- right: 0;
- z-index: 2;
- }
- .pi-absolute-lb {
- position: absolute;
- bottom: 0;
- left: 0;
- z-index: 2;
- }
- .pi-absolute-rb {
- position: absolute;
- right: 0;
- bottom: 0;
- z-index: 2;
- }
- // 公共头部
- .pi-header {
- @extend .pi-width-100P;
- @extend .pi-relative;
- text-align: center;
- background: linear-gradient(#ccc, 2%, #ffffff);
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
- border-bottom: 1px solid #ddd;
- .pi-header-left {
- @extend .pi-absolute-lt;
- left: 100px;
- }
- .pi-header-left.no-title {
- left: 20px;
- }
- .pi-header-center {
- @extend .pi-absolute-center;
- }
- .pi-header-right {
- @extend .pi-absolute-rt;
- right: 20px;
- }
- }
- .wrap-contaniner {
- display: flex;
- flex-direction: column;
- width: calc(100vw - 55px - 120px);
- .wrap-content {
- height: calc(100vh - 34px);
- }
- }
- // .content-wrap.hide {
- // width: calc(100vw - 55px);
- // }
- // 按钮
- .pi-btn-secondary {
- color: #fff;
- background-color: #6c757d;
- border-color: #6c757d;
- }
- .pi-circle-gray {
- position: relative;
- padding-left: 14px;
- &::before {
- content: '';
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- left: 0;
- width: 12px;
- height: 12px;
- background-color: #6c757d;
- border-radius: 50%;
- }
- }
- .pi-circle-yellow {
- position: relative;
- padding-left: 14px;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- top: 50%;
- transform: translateY(-50%);
- left: 0;
- width: 12px;
- height: 12px;
- background-color: $pi-yellow;
- border-radius: 50%;
- }
- }
- .pi-circle-green {
- position: relative;
- padding-left: 14px;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 12px;
- height: 12px;
- background-color: $pi-green;
- border-radius: 50%;
- }
- }
- .pi-pointer {
- cursor: pointer;
- }
- .m-3 {
- margin: 1rem;
- }
- .mt-3,
- .my-3 {
- margin-top: 1rem;
- }
- .pi-table {
- width: 100%;
- margin-bottom: 1rem;
- color: #212529;
- & > thead th {
- vertical-align: bottom;
- border-bottom: 2px solid #dee2e6;
- }
- & > tbody td,
- & > thead td,
- & > tbody th,
- & > thead th {
- padding: 0.3rem;
- vertical-align: top;
- }
- & > tbody th,
- & > thead th {
- background: #e9ecef;
- font-weight: normal;
- color: #000;
- }
- }
- .pi-bordered {
- border: 1px solid #dee2e6;
- & > tbody td,
- & > thead td,
- & > tbody th,
- & > thead th {
- border: 1px solid #dee2e6;
- }
- & > thead th {
- border-bottom-width: 2px;
- }
- }
|