onsenui
Version:
HTML5 Mobile Framework & UI Components
2,014 lines (2,005 loc) • 206 kB
CSS
/*!
* Copyright 2013-2017 ASIAL CORPORATION
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/*!
* Copyright 2012 Adobe Systems Inc.;
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
:root {
/* variables for iOS components */
/* variables for Material Design components */
/* others */
}
html {
height: 100%;
width: 100%;
}
body {
position: absolute;
overflow: hidden;
top: 0;
right: 0;
left: 0;
bottom: 0;
padding: 0;
margin: 0;
-webkit-text-size-adjust: 100%;
touch-action: manipulation;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
input, textarea, select {
-webkit-user-select: auto;
-ms-user-select: auto;
user-select: auto;
-moz-user-select: text;
-webkit-touch-callout: none;
}
a, button, input, textarea, select {
touch-action: manipulation;
}
input:active, input:focus, textarea:active, textarea:focus, select:active, select:focus {
outline: none;
}
h1 {
font-size: 36px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 24px;
}
h4, h5, h6 {
font-size: 18px;
}
:root {
}
.page {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
background-color: #efeff4;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow-x: visible;
overflow-y: hidden;
color: #1f1f21;
-ms-overflow-style: none;
-webkit-font-smoothing: antialiased;
}
.page::-webkit-scrollbar {
display: none;
}
.page__content {
background-color: #efeff4;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
}
.page__background {
background-color: #efeff4;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
box-sizing: border-box;
}
.page--material {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
background-color: #eceff1;
}
.page--material__content {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-weight: 400;
}
.page__content h1,
.page__content h2,
.page__content h3,
.page__content h4,
.page__content h5 {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-weight: 500;
margin: 0.6em 0;
padding: 0;
}
.page__content h1 {
font-size: 28px;
}
.page__content h2 {
font-size: 24px;
}
.page__content h3 {
font-size: 20px;
}
.page--material__content h1,
.page--material__content h2,
.page--material__content h3,
.page--material__content h4,
.page--material__content h5 {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-weight: 500;
margin: 0.6em 0;
padding: 0;
}
.page--material__content h1 {
font-size: 28px;
}
.page--material__content h2 {
font-size: 24px;
}
.page--material__content h3 {
font-size: 20px;
}
.page--material__background {
background-color: #eceff1;
}
:root { /* background color active */
}
/*~
name: Switch
category: Switch
elements: ons-switch
markup: |
<label class="switch">
<input type="checkbox" class="switch__input">
<div class="switch__toggle">
<div class="switch__handle"></div>
</div>
</label>
<label class="switch">
<input type="checkbox" class="switch__input" checked>
<div class="switch__toggle">
<div class="switch__handle"></div>
</div>
</label>
<label class="switch">
<input type="checkbox" class="switch__input" disabled>
<div class="switch__toggle">
<div class="switch__handle"></div>
</div>
</label>
*/
.switch {
display: inline-block;
vertical-align: top;
box-sizing: border-box;
background-clip: padding-box;
position: relative;
min-width: 51px;
font-size: 17px;
padding: 0 20px;
border: none;
overflow: visible;
width: 51px;
height: 32px;
z-index: 0;
text-align: left;
}
.switch__input {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
padding: 0;
border: 0;
background-color: transparent;
z-index: 1;
vertical-align: top;
outline: none;
width: 100%;
height: 100%;
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
z-index: 0;
}
/* switch toggle background */
.switch__toggle {
background-color: white;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 30px;
transition-property: all;
transition-duration: 0.35s;
transition-timing-function: ease-out;
box-shadow: inset 0 0 0 2px #e5e5e5;
}
/* switch toggle circle */
.switch__handle {
box-sizing: border-box;
background-clip: padding-box;
position: absolute;
content: '';
border-radius: 28px;
height: 28px;
width: 28px;
background-color: white;
left: 1px;
top: 2px;
transition-property: all;
transition-duration: 0.35s;
transition-timing-function: cubic-bezier(.59, .01, .5, .99);
box-shadow: 0 0 1px 0 rgba(0, 0, 0, .25), 0 3px 2px rgba(0, 0, 0, .25);
}
.switch--active__handle {
transition: none;
}
:checked + .switch__toggle {
box-shadow: inset 0 0 0 2px #44db5e;
background-color: #44db5e;
}
:checked + .switch__toggle > .switch__handle {
left: 21px;
box-shadow: 0 3px 2px rgba(0, 0, 0, .25);
}
:disabled + .switch__toggle {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.switch__touch {
position: absolute;
top: -5px;
bottom: -5px;
left: -10px;
right: -10px;
}
/*~
name: Material Switch
category: Switch
elements: ons-switch
markup: |
<label class="switch switch--material">
<input type="checkbox" class="switch__input switch--material__input">
<div class="switch__toggle switch--material__toggle">
<div class="switch__handle switch--material__handle">
</div>
</div>
</label>
<label class="switch switch--material">
<input type="checkbox" class="switch__input switch--material__input" checked>
<div class="switch__toggle switch--material__toggle">
<div class="switch__handle switch--material__handle">
</div>
</div>
</label>
<label class="switch switch--material">
<input type="checkbox" class="switch__input switch--material__input" disabled>
<div class="switch__toggle switch--material__toggle">
<div class="switch__handle switch--material__handle">
</div>
</div>
</label>
*/
.switch--material {
width: 36px;
height: 24px;
padding: 0 10px;
min-width: 36px;
}
.switch--material__toggle {
background-color: #b0afaf;
margin-top: 5px;
height: 14px;
box-shadow: none;
}
.switch--material__input {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
padding: 0;
border: 0;
background-color: transparent;
z-index: 1;
vertical-align: top;
outline: none;
width: 100%;
height: 100%;
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
z-index: 0;
}
.switch--material__handle {
background-color: #f1f1f1;
left: 0;
margin-top: -5px;
width: 20px;
height: 20px;
box-shadow:
0 4px 5px 0 rgba(0, 0, 0, .14),
0 1px 10px 0 rgba(0, 0, 0, .12),
0 2px 4px -1px rgba(0, 0, 0, .4);
}
:checked + .switch--material__toggle {
background-color: rgba(55, 71, 79, 0.5);
box-shadow: none;
}
:checked + .switch--material__toggle > .switch--material__handle {
left: 16px;
background-color: #37474f;
box-shadow:
0 2px 2px 0 rgba(0, 0, 0, .14),
0 1px 5px 0 rgba(0, 0, 0, .12),
0 3px 1px -2px rgba(0, 0, 0, .2);
}
:disabled + .switch--material__toggle {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.switch--material__handle:before {
background: transparent;
content: '';
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
z-index: 0;
box-shadow: 0 0 0 0 rgba(0, 0, 0, .12);
transition: box-shadow 0.1s linear;
}
.switch--material__toggle > .switch--active__handle:before {
box-shadow: 0 0 0 14px rgba(0, 0, 0, .12);
}
:checked + .switch--material__toggle > .switch--active__handle:before {
box-shadow: 0 0 0 14px rgba(55, 71, 79, 0.2);
}
.switch--material__touch {
position: absolute;
top: -10px;
bottom: -10px;
left: -15px;
right: -15px;
}
/*~
name: Range
category: Range
elements: ons-range
markup: |
<div class="range">
<input type="range" class="range__input">
<input type="range" class="range__focus-ring">
</div>
<div class="range range--disabled">
<input type="range" class="range__input" disabled>
<input type="range" class="range__focus-ring" disabled>
</div>
*/
.range {
display: inline-block;
position: relative;
width: 100px;
height: 30px;
margin: 0;
padding: 0;
background-image: linear-gradient(#a4aab3, #a4aab3);
background-position: left center;
background-size: 100% 2px;
background-repeat: no-repeat;
background-color: transparent;
}
.range__input {
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
vertical-align: top;
outline: none;
line-height: 1;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: linear-gradient(#0076ff, #0076ff);
background-position: left center;
background-size: 0% 2px;
background-repeat: no-repeat;
height: 30px;
position: relative;
z-index: 1;
width: 100%;
}
.range__input::-moz-range-track {
position: relative;
border: none;
background: none;
box-shadow: none;
top: 0;
margin: 0;
padding: 0;
}
.range__input::-ms-track {
position: relative;
border: none;
background-color: #a4aab3;
height: 0;
border-radius: 50%;
}
.range__input::-webkit-slider-thumb {
cursor: pointer;
position: relative;
height: 28px;
width: 28px;
background-color: #fff;
border: none;
box-shadow: 0 0 1px 0 rgba(0, 0, 0, .25), 0 3px 2px rgba(0, 0, 0, .25);
border-radius: 50%;
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-appearance: none;
appearance: none;
top: 0;
z-index: 1;
}
.range__input::-moz-range-thumb {
cursor: pointer;
position: relative;
height: 28px;
width: 28px;
background-color: #fff;
border: none;
box-shadow: 0 0 1px 0 rgba(0, 0, 0, .25), 0 3px 2px rgba(0, 0, 0, .25);
border-radius: 50%;
margin: 0;
padding: 0;
}
.range__input::-ms-thumb {
cursor: pointer;
position: relative;
height: 28px;
width: 28px;
background-color: #fff;
border: none;
box-shadow: 0 0 1px 0 rgba(0, 0, 0, .25), 0 3px 2px rgba(0, 0, 0, .25);
border-radius: 50%;
margin: 0;
padding: 0;
top: 0;
}
.range__input::-ms-fill-lower {
height: 2px;
background-color: #0076ff;
}
.range__input::-ms-tooltip {
display: none;
}
.range__input:disabled {
opacity: 1;
pointer-events: none;
}
.range__focus-ring {
pointer-events: none;
top: 0;
left: 0;
display: none;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
vertical-align: top;
outline: none;
line-height: 1;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: none;
height: 30px;
position: absolute;
z-index: 0;
width: 100%;
}
.range--disabled {
opacity: 0.3;
cursor: default;
pointer-events: none;
pointer-events: none;
}
/*~
name: Material Range
category: Range
elements: ons-range
markup: |
<div class="range range--material">
<input type="range" class="range__input range--material__input" min="0" max="100">
<!-- <input type="range" class="range__focus-ring range--material__focus-ring"> -->
</div>
<div class="range range--material range--disabled">
<input type="range" class="range__input range--material__input" disabled>
<!-- <input type="range" class="range__focus-ring range--material__focus-ring" disabled> -->
</div>
*/
.range--material {
position: relative;
background-image: linear-gradient(#bdbdbd, #bdbdbd);
}
.range--material__input {
background-image: linear-gradient(#31313a, #31313a);
background-position: center left;
background-size: 0% 2px;
}
.range--material__focus-ring {
display: block;
}
.range--material__focus-ring::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
border: none;
box-shadow: 0 0 0 9px #31313a;
background-color: #31313a;
border-radius: 50%;
opacity: 0;
transition: opacity 0.25s ease-out, -webkit-transform 0.25s ease-out;
transition: opacity 0.25s ease-out, transform 0.25s ease-out;
transition: opacity 0.25s ease-out, transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
}
.range--material__input.range__input--active + .range--material__focus-ring::-webkit-slider-thumb {
opacity: 0.2;
-webkit-transform: scale(1.5, 1.5, 1.5);
transform: scale(1.5, 1.5, 1.5);
}
.range--material__input::-webkit-slider-thumb {
position: relative;
box-sizing: border-box;
border: none;
background-color: transparent;
width: 14px;
height: 32px;
border-radius: 0;
box-shadow: none;
background-image: radial-gradient(circle farthest-corner, #31313a 0%, #31313a 6.6px, transparent 7px);
transition: -webkit-transform 0.1s linear;
transition: transform 0.1s linear;
transition: transform 0.1s linear, -webkit-transform 0.1s linear;
overflow: visible;
}
.range--material__input[_zero]::-webkit-slider-thumb {
background-image: radial-gradient(circle farthest-corner, #f2f2f2 0%, #f2f2f2 4px, #bdbdbd 4px, #bdbdbd 6.4px, transparent 7px);
}
.range--material__input[_zero] + .range--material__focus-ring::-webkit-slider-thumb {
box-shadow: 0 0 0 9px #bdbdbd;
}
.range--material__input::-moz-range-track {
background: none;
}
.range--material__input::-moz-range-thumb,
.range--material__input:focus::-moz-range-thumb {
box-sizing: border-box;
border: none;
width: 14px;
height: 32px;
border-radius: 0;
background-color: transparent;
background-image: -moz-radial-gradient(circle farthest-corner, #31313a 0%, #31313a 6.6px, transparent 7px); /* stylelint-disable-line */
box-shadow: none;
}
.range--material__input:active::-webkit-slider-thumb,
.range--material__input.range__input--active::-webkit-slider-thumb { /* NOTICE: ":active" does not work on Android Chrome. */
-webkit-transform: scale(1.5);
transform: scale(1.5);
transition: -webkit-transform 0.1s linear;
transition: transform 0.1s linear;
transition: transform 0.1s linear, -webkit-transform 0.1s linear;
}
/* stylelint-disable */
.range--disabled.range--material { /* stylelint-enable */
opacity: 1;
}
/* stylelint-disable */
.range--disabled > .range--material__input { /* stylelint-enable */
background-image: none;
}
.range--material__input:disabled::-webkit-slider-thumb {
background-image: radial-gradient(circle farthest-corner, #b0b0b0 0%, #b0b0b0 4px, #eeeeee 4.4px, #eeeeee 7.6px, transparent 7.6px);
transition: none;
}
.range--material__input:disabled::-moz-range-thumb {
background-image: -moz-radial-gradient(circle farthest-corner, #b0b0b0 0%, #b0b0b0 4px, #eeeeee 4.4px, #eeeeee 7.6px, transparent 7.6px); /* stylelint-disable-line */
transition: none;
}
/*~
name: Notification
category: Notification
markup: |
<span class="notification">1</span>
<span class="notification">10</span>
<span class="notification">999</span>
*/
.notification {
position: relative;
display: inline-block;
vertical-align: top;
font: inherit;
border: none;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-decoration: none;
margin: 0;
padding: 0 4px;
width: auto;
height: 19px;
border-radius: 19px;
background-color: #fe3824;
color: white;
text-align: center;
font-size: 16px;
min-width: 19px;
line-height: 19px;
font-weight: 400;
}
.notification:empty {
display: none;
}
/*~
name: Material Notification
category: Notification
markup: |
<span class="notification notification--material">1</span>
<span class="notification notification--material">10</span>
<span class="notification notification--material">999</span>
*/
.notification--material {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
background-color: #e91e63;
font-size: 16px;
font-weight: 500;
color: white;
}
/*~
name: Toolbar
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar">
<div class="toolbar__center">Navigation Bar</div>
</div>
*/
.toolbar {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
box-sizing: border-box;
background-clip: padding-box;
white-space: nowrap;
overflow: hidden;
word-spacing: 0;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 2;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
align-items: stretch;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
height: 44px;
padding-left: 0;
padding-right: 0;
background: #fafafa;
color: #1f1f21;
box-shadow: none;
font-weight: 400;
width: 100%;
white-space: nowrap;
border-bottom: none;
background-size: 100% 1px;
background-repeat: no-repeat;
background-position: bottom;
background-image: linear-gradient(0deg, #b2b2b2, #b2b2b2 100%);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
.toolbar {
background-image: linear-gradient(0deg, #b2b2b2, #b2b2b2 50%, transparent 50%);
}
}
.toolbar__bg {
background: #fafafa;
}
.toolbar__item {
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
height: 44px;
overflow: visible;
display: block;
vertical-align: middle;
}
.toolbar__left {
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
max-width: 50%;
width: 27%;
text-align: left;
line-height: 44px;
}
.toolbar__right {
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
max-width: 50%;
width: 27%;
text-align: right;
line-height: 44px;
}
.toolbar__center {
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
width: 46%;
text-align: center;
line-height: 44px;
font-size: 17px;
font-weight: 500;
color: #1f1f21;
}
.toolbar__title {
line-height: 44px;
font-size: 17px;
font-weight: 500;
color: #1f1f21;
margin: 0;
padding: 0;
overflow: visible;
}
.toolbar__center:first-child:last-child {
width: 100%;
}
/*~
name: Toolbar Item
category: Toolbar
elements: ons-toolbar ons-toolbar-button
markup: |
<div class="toolbar">
<div class="toolbar__left">
<span class="toolbar-button">
<i class="ion-navicon" style="font-size:32px; vertical-align:-6px;"></i>
</span>
</div>
<div class="toolbar__center">
Navigation Bar
</div>
<div class="toolbar__right">
<span class="toolbar-button">Label</span>
</div>
</div>
*/
/*~
name: Toolbar with Outline Button
category: Toolbar
elements: ons-toolbar ons-toolbar-button
markup: |
<!-- Prerequisite=This example use ionicons(http://ionicons.com) to display icons. -->
<div class="toolbar">
<div class="toolbar__left">
<span class="toolbar-button toolbar-button--outline">
<i class="ion-navicon" style="font-size:32px; vertical-align:-6px;"></i>
</span>
</div>
<div class="toolbar__center">
Title
</div>
<div class="toolbar__right">
<span class="toolbar-button toolbar-button--outline">Button</span>
</div>
</div>
*/
/*~
name: Bottom Bar
category: Toolbar
elements: ons-bottom-toolbar
markup: |
<div class="bottom-bar">
<div class="bottom-bar__line-height" style="text-align:center">Bottom Toolbar</div>
</div>
*/
.bottom-bar {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
box-sizing: border-box;
background-clip: padding-box;
white-space: nowrap;
overflow: hidden;
word-spacing: 0;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 2;
display: block;
height: 44px;
padding-left: 0;
padding-right: 0;
background: #fafafa;
color: #1f1f21;
box-shadow: none;
font-weight: 400;
border-bottom: none;
border-top: 1px solid #b2b2b2;
position: absolute;
bottom: 0;
right: 0;
left: 0;
border-top: none;
background-size: 100% 1px;
background-repeat: no-repeat;
background-position: top;
background-image: linear-gradient(180deg, #b2b2b2, #b2b2b2 100%);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
.bottom-bar {
background-image: linear-gradient(180deg, #b2b2b2, #b2b2b2 50%, transparent 50%);
}
}
.bottom-bar__line-height {
line-height: 44px;
padding-bottom: 0;
padding-top: 0;
}
.bottom-bar--aligned {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
line-height: 44px;
}
.bottom-bar--transparent {
background-color: transparent;
background-image: none;
border: none;
}
/*~
name: Toolbar with Segment
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar">
<div class="toolbar__center">
<div class="segment" style="width:200px;margin:7px 50px;">
<div class="segment__item">
<input type="radio" class="segment__input" name="navi-segment-a" checked>
<div class="segment__button">One</div>
</div>
<div class="segment__item">
<input type="radio" class="segment__input" name="navi-segment-a">
<div class="segment__button">Two</div>
</div>
</div>
</div>
</div>
*/
/*~
name: Material Toolbar
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar toolbar--material">
<div class="toolbar__center toolbar--material__center">
Title
</div>
</div>
*/
.toolbar--material {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
height: 56px;
border-bottom: 0;
box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
padding: 0;
background-color: #ffffff;
background-size: 0;
}
/*~
name: No Shadow Toolbar
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar toolbar--noshadow">
<div class="toolbar__left">
<span class="toolbar-button">
<i class="ion-navicon" style="font-size:32px; vertical-align:-6px;"></i>
</span>
</div>
<div class="toolbar__center">
Navigation Bar
</div>
<div class="toolbar__right">
<span class="toolbar-button">Label</span>
</div>
</div>
*/
.toolbar--noshadow {
box-shadow: none;
background-image: none;
border-bottom: none;
}
.toolbar--material__left, .toolbar--material__right {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-size: 20px;
font-weight: 500;
color: #31313a;
height: 56px;
min-width: 72px;
width: auto;
line-height: 56px;
}
.toolbar--material__center {
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
font-size: 20px;
font-weight: 500;
color: #31313a;
height: 56px;
width: auto;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
line-height: 56px;
}
.toolbar--material__center:first-child {
margin-left: 16px;
}
.toolbar--material__center:last-child {
margin-right: 16px;
}
.toolbar--material__left:empty, .toolbar--material__right:empty {
min-width: 16px;
}
/*~
name: Material Toolbar with Icons
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar toolbar--material">
<div class="toolbar__left toolbar--material__left">
<span class="toolbar-button toolbar-button--material">
<i class="zmdi zmdi-menu"></i>
</span>
</div>
<div class="toolbar__center toolbar--material__center">
Title
</div>
<div class="toolbar__right toolbar--material__right">
<span class="toolbar-button toolbar-button--material">
<i class="zmdi zmdi-search"></i>
</span>
<span class="toolbar-button toolbar-button--material">
<i class="zmdi zmdi-favorite"></i>
</span>
<span class="toolbar-button toolbar-button--material">
<i class="zmdi zmdi-more-vert"></i>
</span>
</div>
</div>
*/
/*~
name: Transparent Toolbar
category: Toolbar
elements: ons-toolbar
markup: |
<div class="toolbar toolbar--transparent">
<div class="toolbar__left">
<span class="toolbar-button">
<i class="ion-navicon" style="font-size:32px; vertical-align:-6px;"></i>
</span>
</div>
<div class="toolbar__center">
Navigation Bar
</div>
<div class="toolbar__right">
<span class="toolbar-button">Label</span>
</div>
</div>
*/
.toolbar--transparent {
background-color: transparent;
box-shadow: none;
background-image: none;
border-bottom: none;
}
/*~
name: Button
category: Button
elements: ons-button
markup: |
<button class="button">Button</button>
<button class="button" disabled>Button</button>
*/
.button {
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
}
.button:hover {
transition: none;
}
.button:active {
background-color: #0076ff;
transition: none;
opacity: 0.2;
}
.button:focus {
outline: 0;
}
.button:disabled, .button[disabled] {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
/*~
name: Outline Button
category: Button
elements: ons-button
markup: |
<button class="button button--outline">Button</button>
<button class="button button--outline" disabled>Button</button>
*/
.button--outline {
background-color: transparent;
border: 1px solid #0076ff;
color: #0076ff;
}
.button--outline:active {
background-color: rgb(179, 214, 255);
border: 1px solid #0076ff;
color: #0076ff;
opacity: 1;
}
.button--outline:hover {
border: 1px solid #0076ff;
transition: 0;
}
/*~
name: Light Button
category: Button
elements: ons-button
markup: |
<button class="button button--light">Button</button>
<button class="button button--light" disabled>Button</button>
*/
.button--light {
background-color: transparent;
color: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(0, 0, 0, 0.2);
}
.button--light:active {
background-color: rgba(0, 0, 0, 0.05);
color: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(0, 0, 0, 0.2);
opacity: 1;
}
/*~
name: Quiet Button
category: Button
elements: ons-button
markup: |
<button class="button--quiet">Button</button>
<button class="button--quiet" disabled>Button</button>
*/
.button--quiet {
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
background: transparent;
border: 1px solid transparent;
box-shadow: none;
background: transparent;
color: #0076ff;
border: none;
}
.button--quiet:disabled,
.button--quiet[disabled] {
opacity: 0.3;
cursor: default;
pointer-events: none;
border: none;
}
.button--quiet:hover {
transition: none;
}
.button--quiet:focus {
outline: 0;
}
.button--quiet:active {
background-color: transparent;
border: none;
transition: none;
opacity: 0.2;
color: #0076ff;
}
/*~
name: Call To Action Button
category: Button
elements: ons-button
markup: |
<button class="button--cta">Button</button>
<button class="button--cta" disabled>Button</button>
*/
.button--cta {
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
border: none;
background-color: #25a6d9;
color: white;
}
.button--cta:hover {
transition: none;
}
.button--cta:focus {
outline: 0;
}
.button--cta:active {
color: white;
background-color: #25a6d9;
transition: none;
opacity: 0.2;
}
.button--cta:disabled,
.button--cta[disabled] {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
/*
name: Large Button
category: Button
elements: ons-button
markup: |
<button class="button button--large" style="width: 95%; margin: 0 auto;">Button</button>
*/
.button--large {
font-size: 17px;
font-weight: 500;
line-height: 36px;
padding: 4px 12px;
display: block;
width: 100%;
text-align: center;
}
.button--large:active {
background-color: #0076ff;
transition: none;
opacity: 0.2;
transition: none;
}
.button--large:disabled,
.button--large[disabled] {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.button--large:hover {
transition: none;
}
.button--large:focus {
outline: 0;
}
/*~
name: Large Quiet Button
category: Button
elements: ons-button
markup: |
<button class="button--large--quiet" style="width: 95%; margin: 0 auto;">Button</button>
*/
.button--large--quiet { /* stylelint-disable-line */
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
font-size: 17px;
font-weight: 500;
line-height: 36px;
padding: 4px 12px;
display: block;
width: 100%;
background: transparent;
border: 1px solid transparent;
box-shadow: none;
color: #0076ff;
text-align: center;
}
.button--large--quiet:active { /* stylelint-disable-line */
transition: none;
opacity: 0.2;
color: #0076ff;
background: transparent;
border: 1px solid transparent;
box-shadow: none;
}
.button--large--quiet:disabled, .button--large--quiet[disabled] { /* stylelint-disable-line */
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.button--large--quiet:hover { /* stylelint-disable-line */
transition: none;
}
.button--large--quiet:focus { /* stylelint-disable-line */
outline: 0;
}
/*~
name: Large Call To Action Button
category: Button
elements: ons-button
markup: |
<button class="button--large--cta" style="width: 95%; margin: 0 auto;">Button</button>
*/
.button--large--cta { /* stylelint-disable-line */
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
border: none;
background-color: #25a6d9;
color: white;
font-size: 17px;
font-weight: 500;
line-height: 36px;
padding: 4px 12px;
width: 100%;
text-align: center;
display: block;
}
.button--large--cta:hover { /* stylelint-disable-line */
transition: none;
}
.button--large--cta:focus { /* stylelint-disable-line */
outline: 0;
}
.button--large--cta:active { /* stylelint-disable-line */
color: white;
background-color: #25a6d9;
transition: none;
opacity: 0.2;
}
.button--large--cta:disabled, .button--large--cta[disabled] { /* stylelint-disable-line */
opacity: 0.3;
cursor: default;
pointer-events: none;
}
/*~
name: Material Button
category: Button
elements: ons-button
markup: |
<button class="button button--material">BUTTON</button>
<button class="button button--material" disabled>DISABLED</button>
*/
.button--material {
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
box-shadow:
0 2px 2px 0 rgba(0, 0, 0, .14),
0 1px 5px 0 rgba(0, 0, 0, .12),
0 3px 1px -2px rgba(0, 0, 0, .2);
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
min-height: 36px;
line-height: 36px;
padding: 0 16px;
text-align: center;
font-size: 14px;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
text-transform: uppercase;
background-color: #2979ff;
color: #ffffff;
font-weight: 500;
transition: background-color 0.25s linear;
opacity: 1;
transition: all 0.25s linear;
}
.button--material:hover {
transition: all 0.25s linear;
}
.button--material:active {
box-shadow:
0 6px 10px 0 rgba(0, 0, 0, .14),
0 1px 18px 0 rgba(0, 0, 0, .12),
0 3px 5px -1px rgba(0, 0, 0, .4);
background-color: #2979ff;
opacity: 0.9;
transition: all 0.25s linear;
}
.button--material:focus {
outline: 0;
}
.button--material:disabled,
.button--material[disabled] {
transition: none;
box-shadow: none;
background-color: rgba(79, 79, 79, 0.26);
color: rgba(0, 0, 0, 0.26);
opacity: 1;
}
/*~
name: Material Flat Button
category: Button
elements: ons-button
markup: |
<button class="button button--material--flat">BUTTON</button>
<button class="button button--material--flat" disabled>DISABLED</button>
*/
.button--material--flat { /* stylelint-disable-line */
position: relative;
display: inline-block;
box-sizing: border-box;
background-clip: padding-box;
padding: 0;
margin: 0;
font: inherit;
color: inherit;
background: transparent;
border: none;
line-height: normal;
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
height: auto;
text-decoration: none;
padding: 4px 10px;
font-size: 17px;
line-height: 32px;
letter-spacing: 0;
color: white;
vertical-align: middle;
background-color: #0076ff;
border: 0 solid currentColor;
border-radius: 3px;
transition: none;
box-shadow:
0 2px 2px 0 rgba(0, 0, 0, .14),
0 1px 5px 0 rgba(0, 0, 0, .12),
0 3px 1px -2px rgba(0, 0, 0, .2);
font-family: 'Roboto', 'Noto', sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
min-height: 36px;
line-height: 36px;
padding: 0 16px;
text-align: center;
font-size: 14px;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
text-transform: uppercase;
background-color: #2979ff;
color: #ffffff;
font-weight: 500;
transition: background-color 0.25s linear;
box-shadow: none;
background-color: transparent;
color: #2979ff;
transition: all 0.25s linear;
}
.button--material--flat:hover { /* stylelint-disable-line */
transition: all 0.25s linear;
}
.button--material--flat:focus { /* stylelint-disable-line */
box-shadow: none;
background-color: transparent;
color: #2979ff;
outline: 0;
opacity: 1;
border: none;
}
.button--material--flat:active { /* stylelint-disable-line */
box-shadow: none;
outline: 0;
opacity: 1;
border: none;
background-color: rgba(153, 153, 153, 0.2);
color: #2979ff;
transition: all 0.25s linear;
}
.button--material--flat:disabled, .button--material--flat[disabled] {/* stylelint-disable-line */
transition: none;
opacity: 1;
box-shadow: none;
background-color: transparent;
color: rgba(0, 0, 0, 0.26);
}
/*~
name: Button Bar
category: Segment
markup: |
<div class="button-bar" style="width:280px;">
<div class="button-bar__item">
<button class="button-bar__button">One</button>
</div>
<div class="button-bar__item">
<button class="button-bar__button">Two</button>
</div>
<div class="button-bar__item">
<button class="button-bar__button">Three</button>
</div>
</div>
*/
.button-bar {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: inline-flex;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
align-items: stretch;
-webkit-align-content: stretch;
align-content: stretch;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
margin: 0;
padding: 0;
border: none;
}
.button-bar__item {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
border-radius: 0;
width: 100%;
padding: 0;
margin: 0;
position: relative;
overflow: hidden;
box-sizing: border-box;
}
.button-bar__button {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
border-radius: 0;
background-color: transparent;
color: #0076ff;
border: 1px solid #0076ff;
border-top-width: 1px;
border-bottom-width: 1px;
border-right-width: 1px;
border-left-width: 0;
font-weight: 400;
padding: 0;
font-size: 13px;
height: 27px;
line-height: 27px;
width: 100%;
transition: background-color 0.2s linear, color 0.2s linear;
box-sizing: border-box;
}
.button-bar__button:disabled {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.button-bar__button:hover {
transition: none;
}
.button-bar__button:focus {
outline: 0;
}
:checked + .button-bar__button {
background-color: #0076ff;
color: #fff;
transition: none;
}
.button-bar__button:active,
:active + .button-bar__button {
background-color: rgb(179, 214, 255);
border: 0 solid #0076ff;
border-top: 1px solid #0076ff;
border-bottom: 1px solid #0076ff;
border-right: 1px solid #0076ff;
font-size: 13px;
width: 100%;
transition: none;
}
.button-bar__item:first-child > .button-bar__button {
border-left-width: 1px;
border-radius: 4px 0 0 4px;
}
.button-bar__item:last-child > .button-bar__button {
border-right-width: 1px;
border-radius: 0 4px 4px 0;
}
/*~
name: Segment
category: Segment
markup: |
<div class="segment" style="width: 280px; margin: 0 auto;">
<div class="segment__item">
<input type="radio" class="segment__input" name="segment-a" checked>
<div class="segment__button">One</div>
</div>
<div class="segment__item">
<input type="radio" class="segment__input" name="segment-a">
<div class="segment__button">Two</div>
</div>
<div class="segment__item">
<input type="radio" class="segment__input" name="segment-a">
<div class="segment__button">Three</div>
</div>
</div>
*/
.segment {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: inline-flex;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
align-items: stretch;
-webkit-align-content: stretch;
align-content: stretch;
-webkit-flex-wrap: nowrap;
flex-wrap: nowrap;
margin: 0;
padding: 0;
border: none;
}
.segment__item {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
border-radius: 0;
width: 100%;
padding: 0;
margin: 0;
position: relative;
overflow: hidden;
box-sizing: border-box;
display: block;
background-color: transparent;
border: none;
}
.segment__input {
position: absolute;
right: 0;
top: 0;
left: 0;
bottom: 0;
padding: 0;
border: 0;
background-color: transparent;
z-index: 1;
vertical-align: top;
outline: none;
width: 100%;
height: 100%;
margin: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.segment__button {
font-family: -apple-system, 'Helvetica Neue', 'Helvetica', 'Arial', 'Lucida Grande', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-weight: 400;
border-radius: 0;
background-color: transparent;
color: #0076ff;
border: 1px solid #0076ff;
border-top-width: 1px;
border-bottom-width: 1px;
border-right-width: 1px;
border-left-width: 0;
font-weight: 400;
padding: 0;
font-size: 13px;
height: 29px;
line-height: 29px;
width: 100%;
transition: background-color 0.2s linear, color 0.2s linear;
box-sizing: border-box;
text-align: center;
}
.segment__item:disabled {
opacity: 0.3;
cursor: default;
pointer-events: none;
}
.segment__button:hover {
transition: none;
}
.segment__button:focus {
outline: 0;
}
:active + .segment__button {
background-color: rgb(179, 214, 255);
border: 0 solid #0076ff;
border-top: 1px solid #0076ff;
border-bottom: 1px solid #0076ff;
border-right: 1px solid #0076ff;
font-size: 13px;
width: 100%;
transition: none;
}
:checked + .segment__button {
background-color: #0076ff;
color: #fff;
transition: none;
}
.segment__item:first-child > .segment__button {
border-left-width: 1px;
border-radius: 4px 0 0 4px;
}
.segment__item:last-child > .segment__button {
border-right-width: 1px;
border-radius: 0 4px 4px 0;
}
/*~
name: Material Segment
category: Segment
markup: |
<div class="segment segment--material" style="width: 280px; margin: 0 auto;">
<div class="segment__item segment--material__item">
<input type="radio" class="segment__input segment--material__input" name="segment-b" checked>
<div class="segment__button segment--material__button">One</div>
</div>
<div class="segment__item segment--material__item">