Skip to content

Commit e717659

Browse files
authored
feat: tab improvements (#33)
* feat: tab improvements * fix: improvements * fix: keyboard nav * fix: thinner border, fix shadow * fix: highlight iteration * fix: remove outline for content * fix: remove padding
1 parent 8aea019 commit e717659

File tree

1 file changed

+70
-4
lines changed

1 file changed

+70
-4
lines changed

assets/css/f5-hugo.css

Lines changed: 70 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
}
99

1010
.code-copy {
11-
color: #272822;
11+
color: #429345;
1212
background-color: #fff;
13-
border-color: #272822;
13+
border-color: #429345;
1414
border: 1px solid;
1515
border-radius: 4px 4px 0px 0px;
1616
border-bottom: 0px;
@@ -24,9 +24,9 @@
2424

2525
.code-copy:hover {
2626
cursor: pointer;
27-
background-color: #009639;
27+
background-color: #429345;
2828
color: #ffffff;
29-
border-color: #272822!important;
29+
border-color: #429345!important;
3030
border: 1px solid;
3131
border-bottom: 0px;
3232
}
@@ -1191,5 +1191,71 @@ ol.breadcrumb > li:first-child {
11911191
padding-right: 4px;
11921192
}
11931193

1194+
/* tabs css */
11941195

1196+
.nav {
1197+
margin-left: 0;
1198+
}
1199+
1200+
.nav-item {
1201+
border: 1px solid #dee2e6;
1202+
background: none;
1203+
border-radius: 5px 5px 0 0;
1204+
position: relative;
1205+
padding-bottom: 0!important;
1206+
}
1207+
1208+
li.nav-item a.nav-link {
1209+
color: #898787;
1210+
font-weight: 300;
1211+
border: none;
1212+
}
1213+
1214+
.nav-item:has(.active) {
1215+
border: 1px solid #429345;
1216+
border-bottom: none;
1217+
background-color: #ffffff;
1218+
border-color: #429345;
1219+
box-shadow: 5px -2px 2px 1px #d1d0d0aa;
1220+
z-index: 6;
1221+
margin-bottom: -1px;
1222+
}
1223+
1224+
.nav-item .nav-link:focus {
1225+
outline: none;
1226+
}
1227+
1228+
.nav-item:not(:has(.active)) > .nav-link:hover,
1229+
.nav-item:not(:has(.active)) > .nav-link:focus {
1230+
color: #11bd8d;
1231+
}
11951232

1233+
.nav-item:not(:has(.active)):hover {
1234+
border: 1px solid #11bd8d;
1235+
}
1236+
1237+
.nav-item:not(:has(.active)) > .nav-link:focus {
1238+
outline: none;
1239+
}
1240+
.nav-item:not(:has(.active)):focus-within {
1241+
border: 1px solid #11bd8d;
1242+
}
1243+
1244+
.nav-item .nav-link {
1245+
background: none!important;
1246+
}
1247+
1248+
.nav-tabs .nav-link.active {
1249+
border: 1px;
1250+
color: #429345;
1251+
font-weight: bold;
1252+
}
1253+
1254+
.nav-tabs {
1255+
border-bottom: none;
1256+
}
1257+
1258+
.tab-content {
1259+
border-top: 1px solid #429345;
1260+
margin-bottom: 10px;
1261+
}

0 commit comments

Comments
 (0)