UNPKG

hbm-react-components

Version:
1,563 lines (1,358 loc) 32.1 kB
/** * Normalize */ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /** * Remove default margin. */ body { margin: 0; } /* HTML5 display definitions ========================================================================== */ /** * Correct `block` display not defined for any HTML5 element in IE 8/9. * Correct `block` display not defined for `details` or `summary` in IE 10/11 * and Firefox. * Correct `block` display not defined for `main` in IE 11. */ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } /** * 1. Correct `inline-block` display not defined in IE 8/9. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */ audio:not([controls]) { display: none; height: 0; } /** * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */ [hidden], template { display: none; } /* Links ========================================================================== */ /** * Remove the gray background color from active links in IE 10. */ a { background-color: transparent; } /** * Improve readability when focused and also mouse hovered in all browsers. */ a:active, a:hover { outline: 0; } /* Text-level semantics ========================================================================== */ /** * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { border-bottom: 1px dotted; } /** * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { font-weight: bold; } /** * Address styling not present in Safari and Chrome. */ dfn { font-style: italic; } /** * Address variable `h1` font-size and margin within `section` and `article` * contexts in Firefox 4+, Safari, and Chrome. */ h1 { font-size: 2em; margin: 0.67em 0; } /** * Address styling not present in IE 8/9. */ mark { background: #ff0; color: #000; } /** * Address inconsistent and variable font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } /* Embedded content ========================================================================== */ /** * Remove border when inside `a` element in IE 8/9/10. */ img { border: 0; } /** * Correct overflow not hidden in IE 9/10/11. */ svg:not(:root) { overflow: hidden; } /* Grouping content ========================================================================== */ /** * Address margin not present in IE 8/9 and Safari. */ figure { margin: 1em 40px; } /** * Address differences between Firefox and other browsers. */ hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } /** * Contain overflow in all browsers. */ pre { overflow: auto; } /** * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } /* Forms ========================================================================== */ /** * Known limitation: by default, Chrome and Safari on OS X allow very limited * styling of `select`, unless a `border` property is set. */ /** * 1. Correct color not being inherited. * Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ } /** * Address `overflow` set to `hidden` in IE 8/9/10/11. */ button { overflow: visible; } /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */ button, select { text-transform: none; } /** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. * 2. Correct inability to style clickable `input` types in iOS. * 3. Improve usability and consistency of cursor style between image-type * `input` and others. */ button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ } /** * Re-set default cursor for disabled elements. */ button[disabled], html input[disabled] { cursor: default; } /** * Remove inner padding and border in Firefox 4+. */ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ input { line-height: normal; } /** * It's recommended that you don't attempt to style these elements. * Firefox's implementation doesn't respect box-sizing, padding, or width. * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Fix the cursor style for Chrome's increment/decrement buttons. For certain * `font-size` values of the `input`, it causes the cursor style of the * decrement button to change from `default` to `text`. */ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome * (include `-moz` to future-proof). */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ -moz-box-sizing: content-box; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; } /** * Remove inner padding and search cancel button in Safari and Chrome on OS X. * Safari (but not Chrome) clips the cancel button when the search input has * padding (and `textfield` appearance). */ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * Define consistent border, margin, and padding. */ fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } /** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ legend { border: 0; /* 1 */ padding: 0; /* 2 */ } /** * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea { overflow: auto; } /** * Don't inherit the `font-weight` (applied by a rule above). * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */ optgroup { font-weight: bold; } /* Tables ========================================================================== */ /** * Remove most spacing between table cells. */ table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /** * Fonts */ @font-face { font-family: 'Roboto'; src: url("../fonts/Roboto-Thin-webfont.woff") format("woff"); font-style: normal; font-weight: 100; } @font-face { font-family: 'Roboto'; src: url("../fonts/Roboto-Light-webfont.woff") format("woff"); font-style: normal; font-weight: 300; } @font-face { font-family: 'Roboto'; src: url("../fonts/Roboto-Regular-webfont.woff") format("woff"); font-style: normal; font-weight: 400; } @font-face { font-family: 'Roboto'; src: url("../fonts/Roboto-Medium-webfont.woff") format("woff"); font-style: normal; font-weight: 500; } @font-face { font-family: 'Roboto'; src: url("../fonts/Roboto-Bold-webfont.woff") format("woff"); font-style: normal; font-weight: 700; } /** * Variables */ /** * Scaffolding */ html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } html { -webkit-tap-highlight-color: transparent; } body { font-family: 'Roboto', sans-serif; font-size: 1em; line-height: 1em; background: #f9f9f9; color: #333; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-top: 56px; } @media (min-width: 768px) { body { padding-top: 64px; } } main { flex: 1; padding-left: 10px; padding-right: 10px; padding-top: 2px; padding-bottom: 10px; font-size: 13px; } @media (min-width: 768px) { main { /** * Cards have a margin of 8px => left = 40px and top = 20px */ padding-right: 0; padding-left: 0; padding-top: 20px; padding-bottom: 20px; width: 750px; margin-left: auto; margin-right: auto; } } @media (min-width: 992px) { main { width: 970px; } } @media (min-width: 1200px) { main { padding-left: 240px; width: 1170px; } } /* http://www.google.com/design/spec/components/buttons.html#buttons-usage */ .Button { min-width: 88px; height: 36px; background: none; border: none; padding: 0 8px; margin: 0 4px; text-transform: uppercase; border-radius: 2px; outline: none; color: #1b325f; font-weight: 500; } .Button:hover, .Button:focus { background: rgba(153, 153, 153, 0.2); } .Button:active { background: rgba(153, 153, 153, 0.4); } .Button:disabled { color: rgba(0, 0, 0, 0.4); background: none; } /* http://www.google.com/design/spec/components/buttons.html#buttons-flat-raised-buttons */ .Button--raised { background: rgba(153, 153, 153, 0.2); box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.26); transition: 0.25s; } .Button--raised:active { background: rgba(153, 153, 153, 0.2); box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.3); } /** * http://www.google.com/design/spec/components/cards.html#cards-usage */ .Card { border-radius: 2px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24); } .Card-title { font-size: 24px; padding: 24px 16px 16px 16px; } .Card-actions { padding: 8px; } .Card-content { padding: 24px 16px; } /** * Align left most button text with title and card text */ .Card-actions > .Button { margin: 0; text-align: left; min-width: 0; } .Card-actions .Button + .Button { margin-left: 8px; } .Card-text { font-size: 14px; padding: 16px; line-height: 1.5em; } /** * Fix left alignment for Checkbox component 10px + 3px */ .Card-text > .Checkbox { margin-left: -13px; } @media (min-width: 768px) { .Card-text > .Checkbox { /** * 5px + 3px */ margin-left: -8px; } } /** * http://www.google.com/design/spec/components/switches.html#switches-checkbox */ .Checkbox { /* for absolute positioned .Checkbox-focus div */ position: relative; height: 48px; display: flex; align-items: center; } .Checkbox-input { position: absolute; opacity: 0; z-index: -1; } .Checkbox-icon { padding: 10px; line-height: 0; outline: 0; fill: rgba(0, 0, 0, 0.54); } @media (min-width: 768px) { .Checkbox-icon { padding: 5px; } } .Checkbox-label { color: rgba(0, 0, 0, 0.54); } /** * checked */ .Checkbox-input:checked ~ .Checkbox-icon, .Checkbox-input:checked ~ .Checkbox-label { color: #1b325f; fill: #1b325f; } /** * disabled */ .Checkbox-input:disabled ~ .Checkbox-icon, .Checkbox-input:disabled ~ .Checkbox-label { fill: rgba(0, 0, 0, 0.26); color: rgba(0, 0, 0, 0.26); } /** * focus */ .Checkbox-focus { position: absolute; /* 48px - 18px = 30px / 2 = 15px */ top: 15px; left: 8px; /* use the same width as svg path element for checkbox icon */ width: 18px; height: 18px; border-radius: 50%; display: none; } .Checkbox-input:checked:focus ~ .Checkbox-focus { box-shadow: 0 0 0 8px rgba(27, 50, 95, 0.12); background-color: rgba(27, 50, 95, 0.12); display: block; } .Checkbox-input:not(:checked):focus ~ .Checkbox-focus { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.12); background-color: rgba(0, 0, 0, 0.12); display: block; } .Chip-wrapper { cursor: text; } .Chip-input { outline: none; background: none; border: none; } .Chip { display: inline-flex; align-items: center; background: #e0e0e0; font-size: 13px; color: rgba(0, 0, 0, 0.87); border-radius: 16px; height: 32px; margin-right: 5px; margin-bottom: 5px; } .Chip:focus { color: #fff; background-color: rgba(0, 0, 0, 0.54); outline: none; } .Chip:focus .Chip-delete { background-color: #fff; color: rgba(0, 0, 0, 0.54); } .Chip-delete { display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.54); font-size: 20px; color: #e0e0e0; border: 0; border-radius: 50%; outline: none; height: 20px; width: 20px; margin: 0 4px; } .Chip-icon { display: flex; align-items: center; justify-content: center; color: #fff; width: 32px; height: 32px; background-color: #009587; border-radius: 50%; font-size: 16px; } /** * http://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing */ /** * HTML5 header element */ header { height: 48px; background: #1b325f; color: #fff; display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: 2; transition: box-shadow 0.5s ease; } @media (min-width: 768px) { header { height: 64px; } } /** * Add shadow to header when scrolling down. */ header.Header--shadow { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26); } /** * Header component CSS class */ .Header { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-left: 16px; margin-right: 16px; } @media (min-width: 1200px) { .Header { margin-left: 240px; } } .Header-block { display: flex; align-items: center; } .Header-title { margin-left: 56px; font-size: 20px; display: none; } @media (min-width: 768px) { .Header-title { font-size: 24px; display: block; } } .Header-chevron { fill: #fff; margin: 0 10px; width: 30px; height: 30px; display: none; } @media (min-width: 768px) { .Header-chevron { display: block; } } .Header-subtitle { margin-left: 56px; font-size: 20px; display: flex; align-items: center; } @media (min-width: 768px) { .Header-subtitle { font-size: 24px; margin-left: 0; } } .IconButton { padding: 12px; line-height: 0; border: 0; background: none; margin: 0; user-select: none; outline: 0; } /** * https://material.google.com/components/lists.html#lists-specs */ .List { padding: 0 0; margin: 0 0; list-style: none; background-color: white; } .List-row-text { flex-shrink: 1; min-width: 150px; } .List-row-text-primary { font-size: 16px; margin: 0 0; margin-bottom: 6px; font-weight: normal; padding: 0 0; } .List-row--oneline .List-row-text-primary { margin-bottom: 0px; } .List-row.List-row--selectable:focus { background-color: #f1f1f1; outline: none; } .List-row--selectable:hover { background-color: #fdfdfd; } .List-row-text-secondary, .List-row-text-subheader { font-size: 14px; line-height: 19px; font-weight: normal; padding: 0 0; margin: 0 0; white-space: nowrap; text-overflow: ellipsis; display: inline-block; width: 100%; overflow: hidden; } .List-row-text-secondary { color: #808080; } .List-row--twoline { height: 72px; } .List-row--threeline { height: 88px; } .List-row { min-height: 48px; display: flex; align-items: center; padding-left: 16px; padding-right: 16px; /** This article suggest to increase padding for table and above * https://material.google.com/layout/metrics-keylines.html#metrics-keylines-keylines-spacing */ } @media (min-width: 768px) { .List-row { padding-left: 24px; padding-right: 24px; } } .List-row:first-child { padding-top: 8px; } .List-row:last-child { padding-bottom: 8px; } .List-row-icon-left, .List-row-icon-right, .List-row-avatar { flex-shrink: 0; width: 56px; } /* Three line rows have top aligned icons */ .List-row.List-row--threeline { align-items: flex-start; } .List-row.List-row--threeline > * { margin-top: 20px; } .List-row.List-row--threeline .List-row-avatar { align-items: flex-start; } .List-row-icon-right { margin-left: auto; } .List-row-icon-right > * { float: right; } .List-row-avatar { height: 56px; display: flex; align-items: center; } .List-row-avatar > * { border-radius: 100%; width: 40px; } /** * http://www.google.com/design/spec/components/menus.html#menus-specs */ .Menu { position: relative; font-size: 13px; display: inline-block; } .Menu-list { margin: 0; padding: 0; z-index: 1; position: absolute; background: #fff; border-radius: 2px; box-shadow: 0 2px 40px rgba(0, 0, 0, 0.4); overflow: hidden; } @media (min-width: 768px) { .Menu-list { padding-top: 16px; padding-bottom: 16px; } } .Menu-list-item { color: #333; display: block; white-space: nowrap; } /** * Menu-list-item-link is of type <a href="#" ...>...</a> */ .Menu-list-item-link { text-decoration: none; color: initial; height: 48px; padding: 0 16px; display: flex; align-items: center; } @media (min-width: 768px) { .Menu-list-item-link { height: 32px; padding-left: 24px; padding-right: 24px; } } .Menu-list-item-link:hover { background-color: rgba(0, 0, 0, 0.025); } .Menu-divider { height: 1px; margin: 7px 0; background-color: rgba(0, 0, 0, 0.12); } .Menu-icon { display: inline-block; margin-right: 16px; min-width: 24px; } /** * CSS variables */ /** * Styles */ .Modal-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; overflow: hidden; z-index: 100; } .Modal { position: relative; margin: 0 10px; width: 100vw; display: flex; flex-direction: column; background-color: #fff; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); border: 1px solid #e5e5e5; border-radius: 2px; } @media (min-width: 768px) { .Modal { margin: 0; width: 600px; } } .Modal-content { padding: 24px; } .Modal-header { color: #0D0D0D; font-size: 20px; margin-bottom: 20px; } .Modal-footer { padding: 8px; display: flex; align-items: center; justify-content: flex-end; } /** * Fix button styles */ .Modal .Button { margin-left: 8px; margin-right: 0; } /** * http://www.google.com/design/spec/layout/structure.html#structure-app-bar */ nav { color: #333; border-right: 1px solid rgba(0, 0, 0, 0.14); position: fixed; top: 0; left: 0; bottom: 0; width: 240px; background: #fff; font-size: 13px; visibility: hidden; transform: translateX(-240px); transition-duration: 0.2s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); z-index: 4; overflow: auto; } @media (min-width: 1200px) { nav { visibility: visible; transform: translateX(0); } } nav.is-visible { visibility: visible; transform: translateX(0); /** * Show overlay first and then slide in navigation */ transition-delay: 0.1s; } .Navigation-logo { height: 48px; padding: 12px 24px 10px 2px; border-bottom: 1px solid #e0e0e0; } @media (min-width: 768px) { .Navigation-logo { height: 64px; padding-left: 11px; } } .Navigation { list-style: none; margin: 0; padding: 0; padding: 12px 0 10px 0; } .Navigation-link { display: block; text-decoration: none; padding: 15px 0 15px 22px; color: #333; font-weight: 700; } .Navigation-link.active { color: #1b325f; } .Navigation-link:focus { background-color: #eee; outline: 0; } .Navigation-hamburger { fill: #fff; position: fixed; z-index: 2; top: 0; left: 4px; } @media (min-width: 768px) { .Navigation-hamburger { top: 8px; } } @media (min-width: 1200px) { .Navigation-hamburger { display: none; } } .Navigation-overlay { background-color: rgba(0, 0, 0, 0.5); position: fixed; z-index: 3; top: 0; right: 0; bottom: 0; left: 0; visibility: hidden; opacity: 0; } .Navigation-overlay.is-visible { opacity: 1; visibility: visible; } /** * Nested navigation */ .Navigation .Navigation { padding: 0; } .Navigation-item > .Navigation > .Navigation-item > .Navigation-link { padding: 10px 24px 10px 46px; font-weight: 400; } .Navigation-item > .Navigation > .Navigation-item > .Navigation-link.active { font-weight: 500; } .Progress-linear { height: 4px; display: flex; align-items: flex-end; } .Progress-linear-background { background-color: rgba(63, 81, 181, 0.3); flex: 1; } .Progress-linear-inner { height: inherit; background-color: #3f51b5; transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .Progress-circular { transform-origin: center; transform: rotate(-90deg); } .Progress-circular-path { stroke: #3f51b5; transition: stroke-dashoffset 0.2s cubic-bezier(0.4, 0, 0.2, 1); } /** * http://www.google.com/design/spec/components/switches.html#switches-radio-button */ /** * Implementation from http://wtfforms.com/ */ .RadioButton { display: flex; flex-direction: column; } .RadioButton-item { display: flex; align-items: center; flex: 0 1 48px; position: relative; } .RadioButton-input { position: absolute; opacity: 0; z-index: -1; } .RadioButton-label { color: rgba(0, 0, 0, 0.54); margin-left: 10px; } .RadioButton-icon { line-height: 0; fill: rgba(0, 0, 0, 0.54); } /** * checked */ .RadioButton-input:checked ~ .RadioButton-icon, .RadioButton-input:checked ~ .RadioButton-label { color: #1b325f; fill: #1b325f; } /** * disabled */ .RadioButton-input:disabled ~ .RadioButton-icon, .RadioButton-input:disabled ~ .RadioButton-label { fill: rgba(0, 0, 0, 0.26); color: rgba(0, 0, 0, 0.26); } .Select { flex: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; font-size: 16px; /** * align text horizontally with textfields / text inputs */ padding-top: 12px; padding-bottom: 8px; } .Select-label { font-size: 12px; padding: 0 0 8px 0; color: rgba(27, 50, 95, 0.6); } /** * Select-body is of type <button /> */ .Select-body { background: none; margin: 0; padding: 0; border: none; border-bottom: 1px solid rgba(0, 0, 0, 0.12); padding-bottom: 7px; text-align: left; outline: 0; } .Select-placeholder { color: rgba(0, 0, 0, 0.54); } .Select-caret { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border-top: 4px dashed; border-top-color: rgba(0, 0, 0, 0.24); border-right: 4px solid transparent; border-left: 4px solid transparent; } /** * Select-list is of type <ul /> */ .Select-list { margin: 0; padding: 0; z-index: 1; position: absolute; left: -16px; top: -8px; background: #fff; padding: 8px 0; border-radius: 2px; box-shadow: 0 2px 40px rgba(0, 0, 0, 0.4); overflow-y: auto; /** * max-height is equal to 5 elements + margin top and margin bottom */ max-height: 256px; } /** * Select-listItem is of type <li /> */ .Select-listItem { list-style: none; margin: 0; padding: 0; } /** * Select-listItemLink is of type <a /> */ .Select-listItemLink { color: initial; text-decoration: none; min-height: 48px; padding: 0 16px; display: flex; align-items: center; } .Select-listItem:hover { background: #eee; } .Slider { display: flex; align-items: center; } .Slider-input { position: absolute; opacity: 0; z-index: -1; } .Slider-label { margin-left: 20px; } .Slider-track { padding: 23px 0; margin: 0 -8px; position: relative; flex: 1; user-select: none; } .Slider-track-off { margin: 0 8px; height: 2px; background: rgba(0, 0, 0, 0.26); } .Slider-track-on { pointer-events: none; height: 2px; background: #1b325f; } /*.Slider-input:focus ~ .Slider-track .Slider-thumb { animation: click-jump 0.5s ease; }*/ /*.Slider-track-on.is-animating { transition: width 0.5s ease; }*/ .Slider-thumb { pointer-events: none; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #1b325f; top: 16px; border: 2px solid transparent; } .Slider-thumb.is-mouseDown { transition: left 0.5s; /*transform: scale(1.25); animation: click-jump 0.5s;*/ } /*.Slider-thumb.is-clicking { transform: scale(1.25); transition: left 0.5s ease; animation: click-jump 0.5s ease; }*/ .Slider-thumb.is-zero { transition: border 0.5s, background 0.5s; background: #fff; border-color: rgba(0, 0, 0, 0.26); } /*.Slider-thumb.is-dragging { transform: scale(1.25); }*/ /*.Slider-thumb.is-click-jumping.is-zero { transition: left 0.5s, background 0.25s 0.25s, border 0.25s 0.25s; background: #fff; border-color: rgba(0, 0, 0, 0.26); animation: click-jump 0.5s ease; }*/ @keyframes click-jump { 0% { transform: scale(1); } 50% { transform: scale(1.75); } 100% { transform: scale(1.25); } } /** * http://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-specs */ .Snackbar { position: fixed; z-index: 500; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; } @media (min-width: 1200px) { .Snackbar { left: 240px; } } .Snackbar-background { background-color: #323232; min-width: 100%; min-height: 48px; display: flex; align-items: center; padding-left: 24px; padding-right: 24px; } @media (min-width: 768px) { .Snackbar-background { border-radius: 2px; min-width: 288px; max-width: 658px; } } /** * Start opacity animation slightly after translate animation. * Also make it shorter so they both end at the same time. */ .Snackbar-content { min-width: 100%; font-size: 14px; display: flex; align-items: center; justify-content: space-between; } .Snackbar-text { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /** * Color is blue 400. * http://www.google.com/design/spec/style/color.html#color-color-palette * The darkest blue that is possible with dark background */ .Snackbar-action { text-transform: uppercase; background: none; border: none; margin: 0 0 0 24px; padding: 0; color: #42A5F5; outline: none; } /** * http://www.google.com/design/spec/components/switches.html#switches-switch */ .Switch { height: 48px; display: flex; align-items: center; } .Switch-input { position: absolute; opacity: 0; z-index: -1; /* Put the input behind the label so it doesn't overlay text */ } .Switch-track { position: relative; width: 36px; height: 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.26); transition: background 0.15s ease; } .Switch-thumb { position: absolute; top: -3px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fafafa; box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.26); transition: 0.15s ease; } /** * focus */ .Switch-input:checked.Switch-input:focus ~ .Switch-track .Switch-thumb { box-shadow: 0 0 0 15px rgba(27, 50, 95, 0.12); } .Switch-input:not(:checked).Switch-input:focus ~ .Switch-track .Switch-thumb { box-shadow: 0 0 0 15px rgba(0, 0, 0, 0.12); } /** * checked */ .Switch-input:checked ~ .Switch-track { background: rgba(27, 50, 95, 0.5); } .Switch-input:checked ~ .Switch-track .Switch-thumb { left: 16px; background: #1b325f; } /** * disabled */ .Switch-input:disabled ~ .Switch-track { background: rgba(0, 0, 0, 0.12); } .Switch-input:disabled ~ .Switch-track .Switch-thumb { background: #BDBDBD; } /** * http://www.google.com/design/spec/components/tabs.html#tabs-specs */ .Tabs { position: relative; display: flex; font-size: 14px; font-weight: 500; text-transform: uppercase; border-bottom: 1px solid #eee; } .Tabs-Item { flex: 1; padding: 20px; text-align: center; color: rgba(27, 50, 95, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; } .Tabs-Item.active { color: #1b325f; } .Tabs-InkBar { position: absolute; bottom: -1px; height: 2px; background-color: #1b325f; will-change: left, right; } .Tabs-InkBar.transition-left { transition: left 0.25s cubic-bezier(0.35, 0, 0.25, 1), right 0.25s cubic-bezier(0.35, 0, 0.25, 1) 0.075s; } .Tabs-InkBar.transition-right { transition: right 0.25s cubic-bezier(0.35, 0, 0.25, 1), left 0.25s cubic-bezier(0.35, 0, 0.25, 1) 0.075s; } /** * http://www.google.com/design/spec/components/text-fields.html */ .Textfield { display: block; padding-top: 16px; padding-bottom: 8px; } .Textfield-icon-wrapper { display: flex; } .Textfield-wrapper { flex: 1; display: flex; flex-direction: column; } .Textfield-icon { width: 48px; height: 48px; display: flex; align-items: center; } .Textfield-label { order: 1; display: block; font-size: 16px; color: rgba(27, 50, 95, 0.6); transform: translate3d(0, 20px, 0); transform-origin: left top; transition: cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .Textfield-input { order: 2; width: 100%; display: block; border-radius: 0; font-size: 16px; outline: 0; border: none; border-bottom: 1px solid rgba(0, 0, 0, 0.12); transition: 0.25s; padding-bottom: 4px; } .Textfield-input:focus { border-bottom-color: #1b325f; box-shadow: 0 1px 0 0 #1b325f; } .Textfield-input--error { border-bottom-color: #f44336; } .Textfield-input--error:focus { border-bottom-color: #f44336; box-shadow: 0 1px 0 0 #f44336; } .Textfield-input:focus ~ .Textfield-label, .Textfield-label.is-not-empty { transform: translate3d(0, -4px, 0); font-size: 12px; } .Textfield-label.is-not-empty { color: rgba(27, 50, 95, 0.6); } .Textfield-input:focus ~ .Textfield-label { color: #1b325f; } .Textfield-input:disabled { background-color: transparent; color: rgba(27, 50, 95, 0.6); border-bottom: 1px dotted rgba(27, 50, 95, 0.3); } .Textfield-error { order: 3; display: block; margin-top: 6px; font-size: 12px; color: #f44336; } /** * http://www.google.com/design/spec/components/tooltips.html# */ .Tooltip { position: absolute; z-index: 100; color: #fff; font-size: 14px; border-radius: 4px; margin-top: 4px; padding: 0 16px; height: 44px; background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; pointer-events: none; transform-origin: center top; } section { margin-bottom: 50px; } .Chip-example1 { border-bottom: 2px solid #ddd; } .Chip-example1.is-focused { border-color: #1b325f; } .CodeMirror { height: auto; } .playgroundCode { margin-bottom: 10px; } .playground > div > ul { list-style: none; padding: 0; } .playground > div > ul > li { margin-bottom: 15px; } .playground > div > ul > li > b:first-child { font-weight: normal; font-family: source-code-pro, Menlo, Consolas, Monaco, monospace; background-color: rgba(0, 0, 0, 0.05); border-radius: 2px; padding: 0.3rem 0.5rem; } .playground > div > ul > li > i { font-style: normal; }