Venciity

[ Telerik CSS] LAYOUT 06-BTV CSS

Feb 16th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.39 KB | None | 0 0
  1.  /* RESET */
  2.         body, h1, ul, li {
  3.             margin: 0;
  4.             padding: 0;
  5.             font: 15px/1.2 Tahoma, sans-serif;
  6.             font-weight: normal;
  7.         }
  8.  
  9.         img {
  10.             border: none;
  11.         }
  12.  
  13.         /* TAGS */
  14.         /* Style the body, in order not to trigger a :hover in the borders of the tabs */
  15.         body {
  16.             margin: 15px auto 0; /* Center */
  17.             width: 598px;
  18.             border: 5px solid #ddd;
  19.             border-radius: 3px;
  20.             background: #aaa;
  21.             box-shadow: 1px 1px 6px #444;
  22.         }
  23.  
  24.         a {
  25.             color: #A5AFB3;
  26.             text-decoration: none;
  27.         }
  28.  
  29.         /* TABS */
  30.         .tabs {
  31.             position: relative; /* Create a stacking context for the .tab-content */
  32.             overflow: hidden; /* Clear float */
  33.             height: 287px; /* Fixed height :( */
  34.             background: #1E3741;
  35.         }
  36.  
  37.         .tab {
  38.             float: left;
  39.         }
  40.         /* Makes the .tab-titles on one line */
  41.  
  42.         /* TAB TITLE */
  43.         .tab-title a {
  44.             display: block;
  45.             padding: 5px 15px;
  46.             background: #4B5F67;
  47.             color: #93ACB6;
  48.         }
  49.  
  50.         .tab:not(:last-child) .tab-title a {
  51.             border-right: 1px solid #1E3741;
  52.         }
  53.         /* Make the space right from the last tab select the first tab.
  54.            Uncomment background to see it. */
  55.         .tab-title a {
  56.             position: relative;
  57.             z-index: 1;
  58.         }
  59.  
  60.         .tab:first-child .tab-title a::after {
  61.             position: absolute;
  62.             top: 0;
  63.             left: 0;
  64.             z-index: -1;
  65.             width: 598px;
  66.             height: 100%;
  67.             /* background: #f00; */
  68.             content: " ";
  69.         }
  70.  
  71.         /* TAB ITEMS */
  72.         .tab-content {
  73.             top: 28px;
  74.             left: 0;
  75.             width: 100%;
  76.         }
  77.  
  78.         .tab-item img {
  79.             top: 0;
  80.             right: 0;
  81.         }
  82.         /* Hidden by default */
  83.         .tab-content, .tab-item img {
  84.             position: absolute;
  85.             z-index: -1;
  86.             opacity: 0;
  87.         }
  88.  
  89.         .tab-item img {
  90.             -webkit-transition: opacity 333ms ease-out;
  91.             -moz-transition: opacity 333ms ease-out;
  92.             -o-transition: opacity 333ms ease-out;
  93.             transition: opacity 333ms ease-out;
  94.         }
  95.  
  96.         .tab-item a {
  97.             display: block;
  98.             padding: 5px 10px;
  99.             width: 180px;
  100.         }
  101.  
  102.         .tab-item:not(:last-child) a {
  103.             border-bottom: 1px solid #3A4F58;
  104.         }
  105.  
  106.         /* Hover .tab-title */
  107.         .tabs:not(:hover) .tab:first-child .tab-title a, .tab:hover .tab-title a {
  108.             background: transparent;
  109.             color: #fff;
  110.         }
  111.  
  112.         /* Hover .tab-item */
  113.         .tabs:not(:hover) .tab-item:first-child a, .tab-item:hover a,
  114.         .tab-title:hover ~ .tab-content .tab-item:first-child a {
  115.             background: #00968C;
  116.             color: #fff;
  117.         }
  118.  
  119.         /* Hover .tab-title and .tab-item */
  120.         .tabs:not(:hover) .tab-item:first-child img, .tab-item:hover img,
  121.         .tab-title:hover ~ .tab-content .tab-item:first-child img,
  122.         .tabs:not(:hover) .tab:first-child .tab-content, .tab:hover .tab-content {
  123.             z-index: 1;
  124.             opacity: 1;
  125.         }
Advertisement
Add Comment
Please, Sign In to add comment