123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- @import '../../app.less';
- .tabs {
- height: 44px;
- line-height: 44px;
- overflow: hidden;
- }
- .tabs.small {
- height: 32px;
- line-height: 32px;
- }
- .tabs.border {
- border-bottom: 1px solid #eee;
- }
- .tabs.line {
- text-align: center;
- background: #fff;
- .tab {
- display: inline-block;
- position: relative;
- text-align: center;
- color: @base_color;
- width: 120px;
- margin: 0 30px;
- cursor: pointer;
- }
- .tab::after {
- content: '';
- width: 0;
- height: 4px;
- background: @theme_color;
- transform: translateX(-50%);
- transition: all 0.25s;
- position: absolute;
- bottom: 0;
- left: 50%;
- }
- .tab:hover {
- color: #57A4FEFF;
- }
- .tab.active {
- color: @theme_color;
- }
- .tab.active::after {
- width: 100%;
- }
- }
- .tabs.line.small {
- .tab {
- margin: 0;
- }
- .tab::after {
- height: 3px;
- }
- }
- .tabs.full {
- text-align: center;
- .tabs-warpper {
- display: flex;
- }
- .tab {
- display: inline-block;
- flex: 1;
- position: relative;
- text-align: center;
- cursor: pointer;
- color: #686872FF;
- }
- .tab::after {
- content: '';
- width: 0;
- height: 3px;
- background: @theme_color;
- transform: translateX(-50%);
- transition: all 0.25s;
- position: absolute;
- bottom: 5px;
- left: 50%;
- }
- .tab.active {
- color: #303139FF;
- }
- .tab:hover::after,
- .tab.active::after {
- width: 40px;
- }
- }
- .tabs.card {
- text-align: center;
- background: @theme_bg_color;
- .tabs-warpper {
- display: flex;
- a {
- display: inline-block;
- flex: 1;
- }
- }
- .tab {
- width: 100%;
- display: inline-block;
- position: relative;
- text-align: center;
- color: @base_color;
- cursor: pointer;
- }
- .tab::after {
- content: '';
- width: 0;
- height: 4px;
- background: @theme_color;
- transform: translateX(-50%);
- position: absolute;
- top: 0;
- left: 50%;
- }
- .tab:hover {
- color: @theme_color;
- }
- .tab.active {
- color: @theme_color;
- background: #fff;
- }
- .tab.active::after {
- width: 100%;
- }
- }
- .tabs.tag {
- line-height: 24px;
- .tabs-warpper {
- a {
- display: inline-block;
- }
- }
- .tab {
- padding: 0 20px;
- display: inline-block;
- position: relative;
- text-align: center;
- color: #fff;
- cursor: pointer;
- background: #B9C1C9;
- border-radius: 12px;
- }
- .tab:hover,
- .tab.active {
- background: @theme_color;
- }
- }
- .tabs.tag.white {
- .tab {
- background: #fff;
- color: #7F8699FF;
- border: 1px solid #E7EEF1FF;
- }
- .tab:hover,
- .tab.active {
- background: @theme_color;
- border: 1px solid @theme_color;
- color: #fff;
- }
- }
- .tabs.tag.small {
- height: 40px;
- overflow: hidden;
- .tabs-warpper {
- padding: 8px 0;
- }
- .tab {
- line-height: 22px;
- font-size: 12px;
- padding: 0 5px;
- }
- }
- .tabs.text {
- padding-left: 44px;
- background: #fff;
- .tab {
- display: inline-block;
- position: relative;
- text-align: center;
- color: @base_color;
- margin: 0 13px;
- cursor: pointer;
- }
- .tab::after {
- content: '';
- width: 1px;
- height: 20px;
- background: @line_color;
- position: absolute;
- top: 12px;
- right: -13px;
- }
- .tab:last-child::after {
- display: none;
- }
- .tab:hover,
- .tab.active {
- color: @theme_color;
- }
- a:nth-last-child(1) {
- .tab::after {
- display: none;
- }
- }
- }
- .tabs.division {
- text-align: center;
- .tabs-warpper {
- display: flex;
- }
- a {
- display: inline-block;
- flex: 1;
- width: 100%;
- padding: 0 5px;
- }
- .tab {
- width: 100%;
- display: inline-block;
- position: relative;
- text-align: center;
- color: @base_color;
- cursor: pointer;
- background: #E5E8EE;
- border-radius: 4px 4px 0px 0px;
- overflow: hidden;
- }
- .tab::after {
- content: '';
- width: 0;
- height: 4px;
- background: @theme_color;
- transform: translateX(-50%);
- position: absolute;
- top: 0;
- left: 50%;
- }
- .tab:hover,
- .tab.active {
- color: @theme_color;
- background: #fff;
- }
- .tab:hover::after,
- .tab.active::after {
- width: 100%;
- }
- }
- .tabs.division.theme {
- .tab {
- color: #A7A7B7;
- background: #ECEDEE;
- }
- .tab::after {
- display: none;
- }
- .tab:hover,
- .tab.active {
- color: #fff;
- background: @theme_color;
- }
- }
- .tabs.division.gray {
- .tab {
- color: #A7A7B7;
- background: #ECEDEE;
- }
- .tab::after {
- display: none;
- }
- .tab:hover,
- .tab.active {
- color: #fff;
- background: #989FC1;
- }
- }
|