UNPKG

responsive-tabs

Version:

jQuery plugin that provides responsive tab functionality. The tabs transform to an accordion when it reaches a CSS breakpoint.

140 lines (111 loc) 2.57 kB
body { font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px; background-color: #f9f9f9; } /* Tabs container */ .r-tabs { position: relative; background-color: #00c5ad; border-top: 1px solid #00c5ad; border-right: 1px solid #00c5ad; border-left: 1px solid #00c5ad; border-bottom: 4px solid #00c5ad; border-radius: 4px; } /* Tab element */ .r-tabs .r-tabs-nav .r-tabs-tab { position: relative; background-color: #00c5ad; } /* Tab anchor */ .r-tabs .r-tabs-nav .r-tabs-anchor { display: inline-block; padding: 10px 12px; text-decoration: none; text-shadow: 0 1px rgba(0, 0, 0, 0.4); font-size: 14px; font-weight: bold; color: #fff; } /* Disabled tab */ .r-tabs .r-tabs-nav .r-tabs-state-disabled { opacity: 0.5; } /* Active state tab anchor */ .r-tabs .r-tabs-nav .r-tabs-state-active .r-tabs-anchor { color: #00c5ad; text-shadow: none; background-color: white; border-top-right-radius: 4px; border-top-left-radius: 4px; } /* Tab panel */ .r-tabs .r-tabs-panel { background-color: white; border-bottom: 4px solid white; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } /* Accordion anchor */ .r-tabs .r-tabs-accordion-title .r-tabs-anchor { display: block; padding: 10px; background-color: #00c5ad; color: #fff; font-weight: bold; text-decoration: none; text-shadow: 0 1px rgba(0, 0, 0, 0.4); font-size: 14px; border-top-right-radius: 4px; border-top-left-radius: 4px; } /* Active accordion anchor */ .r-tabs .r-tabs-accordion-title.r-tabs-state-active .r-tabs-anchor { background-color: #fff; color: #00c5ad; text-shadow: none; } /* Disabled accordion button */ .r-tabs .r-tabs-accordion-title.r-tabs-state-disabled { opacity: 0.5; } /* Buttons */ button { display:inline-block; margin-top: 10px; margin-right: 10px; padding: 10px 20px; line-height: 100%; color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px rgba(0, 0, 0, 0.3); vertical-align: middle; font-weight: bold; border: 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background-color: #00c5ad; box-shadow: 0px 3px 0px 0px #00ab94; cursor: pointer; } /* Info bar */ .info { display:inline-block; margin-top: 10px; margin-right: 10px; padding: 10px 20px; width: 300px; line-height: 100%; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 14px; color: #00c5ad; border: 2px solid #00ab94; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; background-color: #fff; cursor: pointer; }