Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.94 KB | None | 0 0
  1. div.sheet-tab-content { display: none; }
  2.  
  3.  
  4.  
  5. input.sheet-tab1:checked ~ div.sheet-tab1,
  6.  
  7. input.sheet-tab2:checked ~ div.sheet-tab2,
  8.  
  9. input.sheet-tab3:checked ~ div.sheet-tab3,
  10.  
  11. input.sheet-tab4:checked ~ div.sheet-tab4 { display: block; }
  12.  
  13.  
  14.  
  15. input.sheet-tab {
  16.  
  17.     width: 150px;
  18.  
  19.     height: 45px;
  20.  
  21.     position: float: none;
  22.  
  23.     top: 350px;
  24.  
  25.     left: 6px;
  26.  
  27.     margin: -1.5px;
  28.  
  29.     cursor: pointer;
  30.  
  31.     z-index: 1;
  32.  
  33.     opacity: 0;
  34.  
  35. }
  36.  
  37.  
  38.  
  39. input.sheet-tab + span::before {
  40.  
  41.     content: attr(title);
  42.  
  43.     border: solid 1px #a8a8a8;
  44.  
  45.     border-bottom-color: #000;
  46.  
  47.     text-align: center;
  48.  
  49.     display: inline-block;
  50.  
  51.     background: #fff;
  52.  
  53.     background: linear-gradient(to top, #c8c8c8, #fff, #c8c8c8);
  54.  
  55.     width: 150px;
  56.  
  57.     height: 50px;
  58.  
  59.     font-size: 18px;
  60.  
  61.     position: absolute;
  62.  
  63.     top: 346px;
  64.  
  65.     left: 13px;
  66.  
  67. }
  68.  
  69.  
  70.  
  71. input.sheet-tab:checked + span::before {
  72.  
  73.     background: #dcdcdc;
  74.  
  75.     background: linear-gradient(to top, #fcfcfc, #dcdcdc, #fcfcfc);
  76.  
  77.     border-bottom-color: #fff;
  78.  
  79. }
  80.  
  81.  
  82.  
  83. input.sheet-tab:not(:first-child) + span::before { border-left: none; }
  84.  
  85.  
  86.  
  87. input.sheet-tab2 + span::before {
  88.  
  89.     background: #dcdcdc;
  90.  
  91.     background: linear-gradient(to top, #c8c8c8, #fff, #c8c8c8);
  92.  
  93.     left: 163px;
  94.  
  95.    
  96.  
  97. }
  98.  
  99.    
  100.  
  101. input.sheet-tab2:checked + span::before {
  102.  
  103.     background: #dcdcdc;
  104.  
  105.     background: linear-gradient(to top, #fcfcfc, #dcdcdc, #fcfcfc);
  106.  
  107.     border-bottom-color: #fcecec;
  108.  
  109. }
  110.  
  111.  
  112.  
  113. input.sheet-tab3 + span::before { left: 313px; }
  114.  
  115.  
  116.  
  117. input.sheet-tab4 + span::before { left: 463px; }
  118.  
  119.  
  120.  
  121. div.sheet-tab-content {
  122.  
  123.     border: 2px solid #000;
  124.  
  125.     border-top-color: #000;
  126.  
  127.     margin: 2px 0 0 4px;
  128.  
  129.     padding: 5px;
  130.  
  131. }
  132.  
  133.  
  134.  
  135. div.sheet-tab1 { background-color: #eee; }
  136.  
  137. div.sheet-tab2 { background-color: #69BE45; }
  138.  
  139. div.sheet-tab3 { background-color: #acecec; }
  140.  
  141. div.sheet-tab4 { background-color: #2A0D39; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement