All files / components/tabs tabs.styled.js

0% Statements 0/8
0% Branches 0/4
0% Functions 0/2
0% Lines 0/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86                                                                                                                                                                           
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