Stupid tabs

This commit is contained in:
Ram Reddy 2021-07-12 21:03:13 -04:00
parent f53ce0e1e6
commit f3d2d61d95
2 changed files with 58 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import './assets/About.scss'
import { Nav, NavItem, NavLink, Card, Button, CardTitle, CardText, Row, Col, Container } from 'reactstrap'
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'
import 'react-tabs/style/react-tabs.scss';
import './assets/react-tabs.scss';
// import {Tabs, Tab} from 'react-bootstrap-tabs';
// Leadership

View File

@ -0,0 +1,57 @@
.react-tabs {
-webkit-tap-highlight-color: transparent;
&__tab-list {
border-bottom: 1px solid #98C1D9;
margin: 0 0 10px;
padding: 0;
}
&__tab {
display: inline-block;
border: 1px solid transparent;
border-bottom: none;
bottom: -1px;
position: relative;
list-style: none;
padding: 6px 12px;
cursor: pointer;
background-color:#98C1D9;
&--selected {
background: #EE6C4D;
border-color: #aaa;
color: #E0FBFC;
border-radius: 5px 5px 0 0;
}
&--disabled {
color: #E0FBFC;
cursor: default;
}
&:focus {
box-shadow: 0 0 5px hsl(208, 99%, 50%);
border-color: hsl(208, 99%, 50%);
outline: none;
&:after {
content: "";
position: absolute;
height: 5px;
left: -4px;
right: -4px;
bottom: -5px;
background: #fff;
}
}
}
&__tab-panel {
display: none;
&--selected {
display: block;
}
}
}