colonel-kurtz
Version:
444 lines (437 loc) • 12 kB
CSS
/**
* Type Values
*/
/**
* Color Values
*
* These mostly come from the Material Design Standard
* http://www.google.com/design/spec/style/color.html
*/
/**
* When using Colonel Kurtz with the active_material gem, this will
* allow the editor to inherit the custom color scheme configured for
* those styles.
*/
/**
* Colonel Kurtz specific values
*/
/**
* Radius Values
*/
.colonel .col-dialog {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.3); }
.colonel .col-dialog-close, .colonel .col-menu-handle {
position: relative; }
.colonel .col-dialog-close:before, .colonel .col-menu-handle:before {
border-radius: inherit;
border: 2px solid transparent;
bottom: 0;
content: "";
left: 0;
position: absolute;
right: 0;
top: 0;
transform: scale(0.7);
transition: 0.3s all; }
.colonel .col-dialog-close:focus, .colonel .col-menu-handle:focus {
outline: none; }
.colonel .col-dialog-close:focus:before, .colonel .col-menu-handle:focus:before {
border-color: rgba(0, 150, 136, 0.5);
transform: scale(1); }
.colonel .col-dialog-close:focus:active:before, .colonel .col-menu-handle:focus:active:before {
border-color: rgba(0, 150, 136, 0.7);
transform: scale(0.9); }
.colonel .col-dialog-close:focus:active:hover:before, .colonel .col-menu-handle:focus:active:hover:before {
border-color: transparent; }
@keyframes colonel-fade {
0% {
opacity: 0; }
100% {
opacity: 1; } }
@keyframes col-menu {
0% {
opacity: 0;
transform: translateX(8px); }
70% {
transform: none; }
100% {
opacity: 1; } }
@keyframes col-switch {
0% {
opacity: 0;
transform: scale(0.9); }
100% {
opacity: 1;
transform: none; } }
@keyframes colonel-float-up {
0% {
box-shadow: none;
opacity: 0;
transform: translateY(4px) scale(0.99); }
100% {
opacity: 1;
transform: none; } }
.colonel {
background: #eee;
font-family: Roboto, sans-serif;
font-size: 14px;
height: 100%;
position: relative;
text-align: center;
/**
* Reset
* This should always be included under the .colonel namespace
*/
/**
* Block
* A block is a single unit of content. It can have many forms,
* `.block` defines the base rules.
*/
/**
* Dialog
* http://www.google.com/design/spec/components/dialogs.html#dialogs-specs
*/
/**
* Fab
*
* A floating action button. Although it technically does not "float"
* for our purposes, Fab is a primary action.
*
* http://www.google.com/design/spec/components/buttons.html#buttons-floating-action-button
*/
/**
* Menu
* Dropdown menus throughout Colonel Kurtz
*/
/**
* Switch
* Switch allows users to create new blocks
*/
/**
* Buttons
* http://www.google.com/design/spec/components/buttons.html#buttons-usage
*/ }
.colonel {
box-sizing: border-box; }
.colonel *,
.colonel *:after,
.colonel *:before {
box-sizing: inherit; }
.colonel button {
background: transparent;
border-radius: 0;
border: 0;
font: inherit;
cursor: pointer;
margin: 0;
padding: 0; }
.colonel button::-moz-focus-inner {
border: 0;
padding: 0; }
.colonel .col-block {
background: #fff;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
margin: 0 auto;
max-width: 768px;
position: relative;
text-align: left; }
.colonel .col-dialog-wrapper {
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 1000; }
.colonel .col-dialog-backdrop {
animation: 0.4s colonel-fade;
background: rgba(0, 0, 0, 0.54);
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 0; }
.colonel .col-dialog {
animation: 0.4s colonel-float-up;
background: #ffffff;
border-radius: 2px;
color: rgba(0, 0, 0, 0.54);
font-size: 16px;
margin: 0 auto;
max-height: 90%;
max-width: 640px;
-ms-overflow-style: -ms-autohiding-scrollbar;
overflow-y: scroll;
padding: 24px;
position: relative;
text-align: left;
width: 90%;
z-index: 1; }
.colonel .col-dialog:focus {
outline: none; }
.colonel .col-dialog-title {
color: rgba(0, 0, 0, 0.875);
font-size: 1.25rem;
font-weight: 500;
margin: 0 0 20px;
line-height: 20px; }
.colonel .col-dialog-close {
border-radius: 50%;
height: 48px;
line-height: 0;
position: absolute;
right: 8px;
top: 12px;
width: 48px; }
.colonel .col-dialog-close svg {
fill: rgba(0, 0, 0, 0.54); }
.colonel .col-dialog-footer {
margin: 0 -12px -8px;
padding-top: 24px;
text-align: right; }
.colonel .col-editor-block-enter {
opacity: 0;
transform: scale(0.97) translateY(-5px);
transition: 0.28s all; }
.colonel .col-editor-block-enter.col-editor-block-enter-active {
opacity: 1;
transform: none; }
.colonel .col-editor-block-leave {
opacity: 1;
transition: 0.28s all; }
.colonel .col-editor-block-leave.col-editor-block-leave-active {
opacity: 0;
transform: translateY(-5px); }
.colonel .col-btn-fab {
background: #009688;
border-radius: 50%;
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
color: #fff;
display: block;
font-size: 18px;
font-weight: 500;
line-height: 16px;
height: 36px;
margin: 0 auto;
padding: 10px 0;
position: relative;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
transition: 0.4s all;
width: 36px;
z-index: 1; }
.colonel .col-btn-fab:before {
border-radius: inherit;
border: 2px solid transparent;
bottom: -8px;
content: "";
left: -8px;
position: absolute;
right: -8px;
top: -8px;
transform: scale(0.7);
transition: 0.3s all; }
.colonel .col-btn-fab:focus {
outline: none; }
.colonel .col-btn-fab:focus:before {
border-color: rgba(0, 0, 0, 0.2);
transform: scale(1); }
.colonel .col-btn-fab:focus:active:before {
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4);
transform: scale(0.9); }
.colonel .col-block .col-btn-fab {
background: #eeeeee;
border: none;
color: rgba(0, 0, 0, 0.54);
font-size: 14px;
font-weight: 600;
line-height: 16px;
height: 24px;
margin: 6px auto;
padding: 0;
text-align: center;
text-shadow: 0 1px 1px #fff;
transition: 0.7s all;
width: 24px; }
.colonel .col-block .col-btn-fab:hover, .colonel .col-block .col-btn-fab:focus {
color: rgba(0, 0, 0, 0.54);
transition: 0.3s all; }
.colonel .col-menu-wrapper {
position: absolute;
right: 0;
top: 0; }
.colonel .col-menu-backdrop {
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 2; }
.colonel .col-menu-handle {
border-radius: 50%;
color: #009688;
height: 48px;
padding: 12px;
position: relative;
z-index: 1; }
.colonel .col-menu-handle svg {
fill: rgba(0, 0, 0, 0.6); }
.colonel .col-menu {
background: #fff;
border-radius: 2px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4), 0 -1px 1px rgba(0, 0, 0, 0.15);
min-width: 144px;
overflow: hidden;
padding: 8px 0;
position: absolute;
right: 8px;
transform-origin: 100% 0;
top: 8px;
z-index: 2; }
.colonel .col-menu:focus {
outline: none; }
.colonel .col-menu-label:after {
border: 4px solid;
border-color: rgba(0, 0, 0, 0.2) transparent transparent;
content: "";
display: inline-block;
margin-left: 8px;
margin-right: -4px;
position: relative;
top: 2px; }
.colonel .col-menu-item {
border-radius: 0;
color: rgba(0, 0, 0, 0.7);
display: block;
font-size: 14px;
line-height: 16px;
padding: 12px 16px;
position: relative;
min-width: 100%;
transition: 0.3s all;
text-align: left; }
.colonel .col-menu-item:hover, .colonel .col-menu-item:focus {
background: #e0e0e0;
transition: 0.1s all;
outline: none; }
.colonel .col-menu-item[disabled] {
color: rgba(0, 0, 0, 0.2);
pointer-events: none; }
.colonel .col-menu-enter,
.colonel .col-menu-leave.col-menu-leave-active {
opacity: 0;
transform: scale(0.2);
transition: 0.3s all;
z-index: 100; }
.colonel .col-menu-enter .col-menu-item,
.colonel .col-menu-leave.col-menu-leave-active .col-menu-item {
opacity: 0;
transition: 0.3s all; }
.colonel .col-menu-enter.col-menu-enter-active,
.colonel .col-menu-leave {
opacity: 1;
transform: none;
transition: 0.2s all; }
.colonel .col-menu-enter.col-menu-enter-active .col-menu-item,
.colonel .col-menu-leave .col-menu-item {
opacity: 1;
transition: 0.3s all 0.2s; }
.colonel .col-switch {
padding: 16px 0;
text-align: center;
white-space: nowrap;
transition: 0.2s all;
width: auto; }
.colonel .col-switch-disabled {
cursor: no-drop;
opacity: 0.3; }
.colonel .col-switch-btn,
.colonel .col-switch-dropdown {
border-radius: 0;
display: inline-block;
line-height: 16px;
padding: 10px 16px;
position: relative;
min-width: 88px;
border-left: 1px solid rgba(0, 0, 0, 0.15); }
.colonel .col-switch-btn:first-child:not(:only-child),
.colonel .col-switch-dropdown:first-child:not(:only-child) {
border-left: 0;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px; }
.colonel .col-switch-btn:last-child:not(:only-child),
.colonel .col-switch-dropdown:last-child:not(:only-child) {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px; }
.colonel .col-switch-btn:only-child,
.colonel .col-switch-dropdown:only-child {
border: 0; }
.colonel .col-switch-btn:hover, .colonel .col-switch-btn:focus {
background: rgba(0, 0, 0, 0.1);
border-left-color: rgba(0, 0, 0, 0.15);
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.1), inset 0 1px rgba(255, 255, 255, 0.4);
transition: 0.1s all; }
.colonel .col-switch-dropdown {
padding: 0; }
.colonel .col-switch-nav {
animation: 0.3s col-switch cubic-bezier(0.89, 0.03, 0.42, 1.23);
background: #fff;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
display: inline-block; }
.colonel .col-switch .col-btn-fab {
animation: 0.3s col-switch cubic-bezier(0.89, 0.03, 0.42, 1.23); }
.colonel .col-button {
color: rgba(0, 0, 0, 0.875);
font-weight: 500;
min-width: 64px;
padding: 8px;
text-align: center;
text-transform: uppercase;
transition: 0.3s all; }
.colonel .col-button:hover, .colonel .col-button:focus {
color: #009688;
transition: 0.1s all; }
.colonel .col-unsupported-header {
padding: 20px 24px 16px; }
.colonel .col-unsupported-title {
color: rgba(0, 0, 0, 0.875);
font-size: 24px;
font-weight: 400;
margin: 8px 0 0; }
.colonel .col-unsupported-subtitle {
font-size: 13px;
margin: 0;
color: rgba(0, 0, 0, 0.54); }
.colonel .col-unsupported-content {
color: rgba(0, 0, 0, 0.54);
font-size: 15px;
line-height: 1.5;
padding: 0 24px 12px; }
.colonel .col-unsupported-data {
background: #223;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
color: white;
font-size: 12px;
line-height: 1.5;
max-height: 300px;
overflow: auto;
padding: 48px;
width: 100%; }
.colonel .col-hidden {
display: block;
position: absolute;
clip: rect(0, 0, 0, 0);
width: 0;
height: 0;
margin: -1; }
.colonel .col-relative {
position: relative; }
.colonel .col-strong {
color: rgba(0, 0, 0, 0.88);
font-weight: bold; }