Advertisement
rileym3

[TCS] WooCommerce Breadcrumb Custom Arrow Nav Test #1

Jul 12th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.64 KB | None | 0 0
  1. .woocommerce-breadcrumb {
  2.     margin: 0 0 1em;
  3.     padding: 0;
  4.     font-size: 12px;
  5.     font-weight: bold;
  6.     color: #ffffff;
  7.      list-style: none;
  8.     overflow: hidden;
  9.     /* font: 18px Helvetica, Arial, Sans-Serif; */
  10.     margin: 40px;
  11.     padding: 0;
  12. }
  13.  
  14. /* .woocommerce-breadcrumb::after {
  15.     clear: both;
  16.     color: white;
  17.     text-decoration: none;
  18.     padding: 10px 0 10px 55px;
  19.     background: #0c71c3; /* fallback color */
  20.     background: hsla(34,85%,35%,1);
  21.     position: relative;
  22.     display: block;
  23.     float: left;
  24. } */
  25.  
  26.  
  27. woocommerce-breadcrumb a { /* ### REQUIRED for Correct Text Color! ### */
  28.     color: #ffffff;
  29. }
  30.  
  31. .woocommerce .woocommerce-breadcrumb a {
  32.     /* ## DEFAULT ## font: 14px Helvetica, Arial, Sans-Serif; */
  33.     font-family: Tahoma, Geneva, sans-serif;
  34.     font-weight: bold;
  35.     color: #ffffff; /* ### REQUIRED for Correct Text Color! ### */
  36. }
  37.  
  38. /* ### Fancy Bradcrumb Nav w/ Arrows ### */
  39.  
  40. .woocommerce-breadcrumb li {
  41.   float: left;
  42.   /* ## TEST: Fix for Last item in breadcrumb trail (no <a> tag!) ## */
  43.   color: white;
  44.   text-decoration: none;
  45.   /* ### DO NOT ENABLE! ### padding: 10px 0 10px 55px; */
  46.   background: #0c71c3; /* fallback color */
  47.   /* background: hsla(34,85%,35%,1); */
  48.   position: relative;
  49.   display: block;
  50.   float: left;
  51. }
  52.  
  53. /* ## Last Breadcrumb Item Fix #2 */
  54. .woocommerce-breadcrumb li:before {
  55.   content: " ";
  56.   display: block;
  57.   width: 0;
  58.   height: 0;
  59.   border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
  60.   border-bottom: 50px solid transparent;
  61.   border-left: 30px solid white;
  62.   position: absolute;
  63.   top: 50%;
  64.   margin-top: -50px;
  65.   margin-left: 1px;
  66.   left: 100%;
  67.   z-index: 1;
  68. }
  69.  
  70. .woocommerce-breadcrumb a:after {
  71.   content: " ";
  72.   display: block;
  73.   width: 0;
  74.   height: 0;
  75.   border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
  76.   border-bottom: 50px solid transparent;
  77.   border-left: 30px solid #0c71c3;
  78.   position: absolute;
  79.   top: 50%;
  80.   margin-top: -50px;
  81.   left: 100%;
  82.   z-index: 2;
  83. }  
  84.  
  85. .woocommerce-breadcrumb li a {
  86.   color: white;
  87.   text-decoration: none;
  88.   padding: 10px 0 10px 55px;
  89.   background: #0c71c3; /* fallback color */
  90.   /* background: hsla(34,85%,35%,1); */
  91.   position: relative;
  92.   display: block;
  93.   float: left;  
  94. }
  95. .woocommerce-breadcrumb li a:after {
  96.   content: " ";
  97.   display: block;
  98.   width: 0;
  99.   height: 0;
  100.   border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
  101.   border-bottom: 50px solid transparent;
  102.   border-left: 30px solid #0c71c3;
  103.   position: absolute;
  104.   top: 50%;
  105.   margin-top: -50px;
  106.   left: 100%;
  107.   z-index: 2;
  108. }  
  109. .woocommerce-breadcrumb li a:before {
  110.   content: " ";
  111.   display: block;
  112.   width: 0;
  113.   height: 0;
  114.   border-top: 50px solid transparent;           /* Go big on the size, and let overflow hide */
  115.   border-bottom: 50px solid transparent;
  116.   border-left: 30px solid white;
  117.   position: absolute;
  118.   top: 50%;
  119.   margin-top: -50px;
  120.   margin-left: 1px;
  121.   left: 100%;
  122.   z-index: 1;
  123. }  
  124. .woocommerce-breadcrumb li:first-child a {
  125.   padding-left: 10px;
  126. }
  127. .woocommerce-breadcrumb li:nth-child(2) a       { background:        hsl(207, 88%, 41%); }
  128. .woocommerce-breadcrumb li:nth-child(2) a:after { border-left-color: hsl(207, 88%, 41%); }
  129. .woocommerce-breadcrumb li:nth-child(3) a       { background:        hsl(207, 88%, 41%); }
  130. .woocommerce-breadcrumb li:nth-child(3) a:after { border-left-color: hsl(207, 88%, 41%); }
  131. .woocommerce-breadcrumb li:nth-child(4) a       { background:        hsl(207, 88%, 41%); }
  132. .woocommerce-breadcrumb li:nth-child(4) a:after { border-left-color: hsl(207, 88%, 41%); }
  133. .woocommerce-breadcrumb li:nth-child(5) a       { background:        hsl(207, 88%, 41%); }
  134. .woocommerce-breadcrumb li:nth-child(5) a:after { border-left-color: hsl(207, 88%, 41%); }
  135. /* ### The next two lines were added as a test ### */
  136. .woocommerce-breadcrumb li:nth-child(6) a       { background:        hsl(207, 88%, 41%); }
  137. .woocommerce-breadcrumb li:nth-child(6) a:after { border-left-color: hsl(207, 88%, 41%); }
  138. .woocommerce-breadcrumb li:last-child a {
  139.   background: transparent !important;
  140.   color: black;
  141.   pointer-events: none;
  142.   cursor: default;
  143. }
  144.  
  145. .woocommerce-breadcrumb li:last-child a:after {
  146.   border: 0;
  147. }
  148.  
  149. .woocommerce-breadcrumb li:last-child span {
  150.   border: 0;
  151.   display: none;
  152. }
  153.  
  154.  
  155. /* ## These next two lines control the hover color...currently set to RED. ## */
  156. .woocommerce-breadcrumb li a:hover { background: hsla(34,85%,25%,1); }
  157. .woocommerce-breadcrumb li a:hover:after { border-left-color: hsla(34,85%,25%,1) !important; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement