hugo-theme-relearn/static/css/tabs.css

67 lines
1.4 KiB
CSS
Raw Normal View History

#body .tab-panel{
margin-bottom: 1.5rem;
margin-top: 1.5rem;
}
#body .tab-nav-button{
background-color: rgba( 134, 134, 134, .166 );
border-color: rgba( 134, 134, 134, .333 );
border-radius: 4px 4px 0 0;
border-style: solid;
border-width: 1px;
2022-02-15 19:00:00 +00:00
bottom: -1px;
2021-08-27 20:23:58 +00:00
-webkit-print-color-adjust: exact;
color-adjust: exact;
display: block;
2022-02-15 19:00:00 +00:00
float: left;
2022-05-29 21:27:43 +00:00
font-size: .9rem;
font-weight: 500;
line-height: 1.42857143;
2022-11-01 01:00:50 +00:00
margin-inline-start: 4px;
padding: 6px 12px;
2022-02-15 19:00:00 +00:00
position: relative;
}
html[dir="rtl"] #body .tab-nav-button{
2022-11-01 01:00:50 +00:00
float: right;
}
#body .tab-nav-button:after {
content: "\200b"
}
#body .tab-nav-button:first-child{
2022-11-01 01:00:50 +00:00
margin-inline-start: 9px;
}
#body .tab-nav-button:not(.active){
border-bottom-color: rgba( 134, 134, 134, .1 );
margin-top: 8px;
2021-08-27 20:23:58 +00:00
padding-bottom: 2px !important;
padding-top: 2px !important;
}
#body .tab-nav-button:not(.active) span{
2021-08-27 20:23:58 +00:00
opacity: .8;
}
#body .tab-content{
2022-02-15 19:00:00 +00:00
background-color: transparent;
border-color: rgba( 134, 134, 134, .333 );
border-style: solid;
border-width: 1px;
clear: both;
2021-08-27 20:23:58 +00:00
-webkit-print-color-adjust: exact;
color-adjust: exact;
display: block;
padding: 8px;
2021-08-27 20:23:58 +00:00
z-index: 10;
}
#body .tab-content-text{
display: none;
}
#body .tab-content-text.active{
display: block;
}
#body .tab-content-text pre{
margin-bottom: 0;
margin-top: 0;
}