import styled from 'styled-components'
const StyledTabs = styled.div`
position: relative;
height: 100%;
.header {
display: flex;
justify-content: center;
position: relative;
border-bottom: 1px solid rgba(197, 208, 225, 0.75);
text-transform: uppercase;
height: 50px;
box-sizing: border-box;
background-color: #fff;
.tab-container {
position: relative;
&.full {
width: 100%;
> ul { width: 100%; }
}
}
.slide {
background: #6197c6;
width: 100%;
height: 4px;
position: absolute;
left: 0;
top: calc(100% - 4px);
-webkit-transition: left 0.3s ease-out;
transition: left 0.3s ease-out;
}
ul {
margin: 0;
padding: 0;
display: inline-flex;
justify-content: center;
list-style: none;
height: 49px;
> li {
flex-grow: 1;
cursor: pointer;
width: 140px;
height: 100%;
a {
font-family: Proxima Nova Condensed;
text-align: center;
text-decoration: none;
align-items: center;
width: 100%;
font-size: 14px;
font-weight: 600;
text-align: center;
color: #3b495e;
justify-content: center;
display: flex;
height: 100%;
> img { margin-right: 6px; }
}
&.active {
a { color: #2870b2; }
}
}
}
}
.tab-pane {
height: calc(100% - 50px);
padding: 10px 30px 30px 30px;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
background-color: #f4f5f8;
}
`
export default StyledTabs
|