UNPKG

marble

Version:

WeDeploy's style guide and UI components

606 lines (540 loc) 16.9 kB
:root { font-size: 14px; } :root [class*='icon-12'] { font-size: 12px; } :root [class*='icon-16'] { font-size: 16px; } @media (min-width: 600px) and (max-width: 1800px) { :root { font-size: 16px; } } @media (min-width: 1800px) { :root { font-size: 18px; } } .tutorial .sidebar-offset { margin-left: 0px; width: 100%; } @media (min-width: 960px) { .tutorial .sidebar-offset { margin-left: calc((0.5rem * 1.5) * 21); width: calc(100% - ((0.5rem * 1.5) * 21)); } } .tutorial .sidebar { top: 0; } @media (min-width: 960px) { .tutorial .sidebar { width: calc((0.5rem * 1.5) * 21); } } .tutorial .sidebar .sidebar-list { padding: calc(1rem * 1.5) calc(0.5rem * 1.5); } .tutorial .sidebar .sidebar-item { display: flex; justify-content: flex-start; flex-direction: row; align-content: center; flex-wrap: nowrap; align-items: center; padding: 0; border-radius: 4px; } .tutorial .sidebar .sidebar-link { display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: nowrap; align-content: center; align-items: center; padding: calc(0.5rem * 1.5); width: 100%; font-family: "Galano", sans-serif; font-weight: 600; font-size: 0.8125rem; color: rgba(14, 20, 26, 0.8); } .tutorial .sidebar .sidebar-link.sidebar-link-selected { background: rgba(0, 212, 106, 0.1); } .tutorial .sidebar .sidebar-link.sidebar-link-read { color: rgba(14, 20, 26, 0.8); } .tutorial .sidebar .sidebar-link span:not(.tutorial-step) { line-height: calc(1rem * 1.5); } .tutorial .sidebar .tutorial-step { font-family: "Galano", sans-serif; font-weight: 600; display: block; margin-right: calc(0.5rem * 1.5); width: calc(1.5rem * 1.5); height: calc(1.5rem * 1.5); border-radius: 50%; box-shadow: 0 2px 8px rgba(14, 20, 26, 0.12); text-align: center; line-height: calc(1.5rem * 1.5); background: white; font-size: 0.8125rem; flex-shrink: 0; position: relative; z-index: 1; } .tutorial .sidebar .sidebar-link { position: relative; height: 100%; } .tutorial .sidebar .sidebar-link .before { background: rgba(14, 20, 26, 0.1); display: block; position: absolute; top: 0; left: 24px; height: 50%; width: 4px; } @media (min-width: 600px) and (max-width: 1800px) { .tutorial .sidebar .sidebar-link .before { left: 28px; } } @media (min-width: 1800px) { .tutorial .sidebar .sidebar-link .before { left: 32px; } } .tutorial .sidebar .sidebar-link.sidebar-link-read .before, .tutorial .sidebar .sidebar-link.sidebar-link-selected .before { background: #00d46a; } .tutorial .sidebar .sidebar-item:first-child .sidebar-link .before { display: none; } .tutorial .sidebar .sidebar-item .sidebar-link .after { background: rgba(14, 20, 26, 0.1); top: 50%; display: block; height: 50%; left: 24px; position: absolute; width: 4px; } @media (min-width: 600px) and (max-width: 1800px) { .tutorial .sidebar .sidebar-item .sidebar-link .after { left: 28px; } } @media (min-width: 1800px) { .tutorial .sidebar .sidebar-item .sidebar-link .after { left: 32px; } } .tutorial .sidebar .sidebar-link.sidebar-link-read .after { background: #00d46a; } .tutorial .sidebar .sidebar-item:last-child .sidebar-link .after { display: none; } .tutorial .sidebar .sidebar-link .section-title { font-size: 0.8125rem; } .tutorial .sidebar .sidebar-link.sidebar-link-read .section-title { color: rgba(14, 20, 26, 0.6); text-decoration: line-through; } .tutorial .sidebar .sidebar-link.sidebar-link-selected .tutorial-step { color: #00d46a; box-shadow: 0 2px 8px rgba(0, 212, 106, 0.1); } .tutorial .sidebar-offset .topbar { width: 100%; height: calc(2.5rem * 1.5); min-height: 60px; box-shadow: 0 2px 8px rgba(14, 20, 26, 0.12); padding: 0 12px; background: #00d46a; display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: nowrap; align-content: center; align-items: center; } .tutorial .sidebar-offset .topbar .topbar-logo { align-self: center; flex-shrink: 0; margin: 0 12px 0 0; } .tutorial .sidebar-offset .topbar .topbar-logo > * { margin: 0; } .tutorial .sidebar-offset .topbar .btn-icon { height: 36px; width: 36px; line-height: 36px; border-radius: 4px; text-align: center; margin-right: 12px; display: inline-block; } @media (min-width: 960px) { .tutorial .sidebar-offset .topbar .btn-icon { display: none; } } .tutorial .sidebar-offset .topbar .btn-icon span { top: 0; margin: 0; line-height: 36px; } .tutorial .sidebar-offset .topbar .topbar-logo-text { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; } .tutorial .sidebar-offset .topbar .time-remaining { display: flex; justify-content: flex-start; flex-direction: row; flex-wrap: nowrap; align-content: center; align-items: center; align-self: center; font-size: 0.8125rem; font-family: "Galano", sans-serif; font-weight: 600; color: rgba(255, 255, 255, 0.8); flex-shrink: 0; } .tutorial .sidebar-offset .topbar .time-remaining > * { margin-right: calc(0.5rem * 1.5); } .tutorial .sidebar-offset .topbar .time-remaining > *:last-child { margin-right: 0; } .tutorial .sidebar-offset .topbar.topbar-light, .tutorial .sidebar-offset .topbar.topbar--light { background: white; } .tutorial .sidebar-offset .topbar.topbar-light .name, .tutorial .sidebar-offset .topbar.topbar--light .name, .tutorial .sidebar-offset .topbar.topbar-light .time-remaining, .tutorial .sidebar-offset .topbar.topbar--light .time-remaining { color: rgba(14, 20, 26, 0.8); } .tutorial .container header { margin: calc(2rem * 1.5) auto; } .tutorial .container .content section > *, .tutorial .container .content article > * { margin-top: 0; margin-bottom: calc(1rem * 1.5); } .tutorial .container .content section > *:last-child, .tutorial .container .content article > *:last-child { margin-bottom: 0; } .tutorial .container h1, .tutorial .container h2, .tutorial .container h3, .tutorial .container h4, .tutorial .container h5, .tutorial .container h6 { color: rgba(14, 20, 26, 0.8); font-weight: 400; margin: 0; padding: 0; text-align: left; } .tutorial .container h1 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 4.2358rem; line-height: calc(3rem * 1.5); } .tutorial .container h2 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 3.42676rem; line-height: calc(3rem * 1.5); } .tutorial .container h3 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 2.77225rem; line-height: calc(2rem * 1.5); } .tutorial .container h4 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 2rem; line-height: calc(2rem * 1.5); } .tutorial .container h5 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 1.618rem; line-height: calc(2rem * 1.5); } .tutorial .container h6 { font-family: "Galano", sans-serif; font-weight: 700; font-size: 1.05895rem; line-height: calc(1rem * 1.5); } .tutorial .container p:not([class]), .tutorial .container li { font-family: "Open Sans", sans-serif; font-weight: 400; font-size: 1rem; line-height: calc(1rem * 1.5); color: rgba(14, 20, 26, 0.8); } .tutorial .container small { display: inline-block; font-family: "Galano", sans-serif; font-weight: 600; font-size: 0.809rem; line-height: calc(1rem * 1.5); color: rgba(14, 20, 26, 0.4); margin-bottom: calc(1rem * 1.5); } .tutorial .container small span { color: rgba(14, 20, 26, 0.6); } .tutorial .container ul:not(.dropdown-menu):not(.radio-group):not(.checklist), .tutorial .container ol:not(.dropdown-menu):not(.radio-group):not(.checklist) { list-style: none; padding: 0; margin-left: 2rem; } .tutorial .container ul:not(.dropdown-menu):not(.radio-group):not(.checklist) li { position: relative; } .tutorial .container ul:not(.dropdown-menu):not(.radio-group):not(.checklist) li:before { font-family: "Galano", sans-serif; font-weight: 700; display: inline-block; content: '\2022'; width: 2rem; position: absolute; left: -1.5rem; } .tutorial .container ul.checklist { list-style: none; padding: 0; margin-left: 0; } .tutorial .container ul.checklist li:before { color: #00d46a; content: "\E017"; display: inline-block; font-family: "icon-16"; font-size: 16px; left: 0; position: relative; top: 2px; width: 2rem; } .tutorial .container ol li { counter-increment: list; position: relative; } .tutorial .container ol li:before { font-family: "Galano", sans-serif; font-weight: 700; color: inherit; display: inline-block; content: counter(list) "."; width: 2rem; text-align: left; position: absolute; left: -2rem; } .tutorial .container a:not([class]) { -webkit-transition: color 0.3s ease-in-out; -o-transition: color 0.3s ease-in-out; transition: color 0.3s ease-in-out; font-family: inherit; font-size: inherit; border-bottom: 1px dashed rgba(14, 20, 26, 0.4); color: #00d46a; } .tutorial .container a:not([class]):hover, .tutorial .container a:not([class]):focus { border-color: #00d46a; color: rgba(0, 212, 106, 0.6); } .tutorial .container code { background: rgba(14, 20, 26, 0.1); display: inline-block; font-family: "Roboto Mono", sans-serif; font-size: 0.809rem; line-height: cacl(1rem*1.5); padding: 0 4px; color: inherit; } .tutorial .container strong { font-family: inherit; font-size: inherit; font-weight: 700; } .tutorial .container em { font-family: inherit; font-size: inherit; font-weight: inherit; font-style: italic; } .tutorial .container strike { font-family: inherit; font-size: inherit; font-weight: inherit; text-decoration: line-through; } .tutorial .container blockquote, .tutorial .container blockquote p:not([class]) { font-family: "Galano", sans-serif; font-weight: 700; font-size: 2rem; line-height: calc(2rem * 1.5); color: rgba(14, 20, 26, 0.8); border: 0px; padding: 0; } .tutorial .container blockquote p { padding: 0px; } .tutorial .container blockquote::before { content: '\201C'; color: rgba(14, 20, 26, 0.4); display: block; width: 2.5rem; text-align: left; } .tutorial .container blockquote::after { position: relative; content: '\201D'; color: rgba(14, 20, 26, 0.4); display: block; width: 2.5rem; text-align: left; top: 1rem; } .tutorial .container figure { width: 100%; text-align: center; padding: calc(0.5rem * 1.5) 0; } .tutorial .container figure img { display: block; width: calc(100% + 5rem); position: relative; left: -2.5rem; border-radius: 0; } @media (min-width: 600px) { .tutorial .container figure img { border-radius: 4px; } } .tutorial .container figure img.original-size { width: auto; max-width: 100%; left: 50%; transform: translateX(-50%); } .tutorial .container figure figcaption { color: rgba(14, 20, 26, 0.4); font-family: "Open Sans", sans-serif; font-weight: 400; font-size: 0.809rem; line-height: calc(1rem * 1.5); text-align: center; margin-top: 0.5rem; } .tutorial .container ul.radio-group { list-style: none; padding: 0; margin-left: 0; } .tutorial .container ul.radio-group * { position: relative; } .tutorial .container ul.radio-group *:before { content: ""; } .tutorial .container ul.radio-group * label { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; cursor: pointer; padding-left: 2rem; margin: 0; top: 0; } .tutorial .container ul.radio-group * input[type="radio"] { display: none; } .tutorial .container ul.radio-group * input[type="radio"] + label:before { -webkit-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; color: rgba(14, 20, 26, 0.8); content: "\E059"; font-family: 'icon-16'; font-size: 16px; position: absolute; left: 0; } .tutorial .container ul.radio-group * input[type="radio"]:checked + label:before { content: "\E058"; color: #00d46a; } .tutorial .container .card { box-shadow: 0 2px 12px rgba(14, 20, 26, 0.12); border-radius: 4px; max-width: calc(34rem + 5rem); padding: calc(2rem * 1.5); margin: 0 auto; } .tutorial .container .aside { padding: calc(1rem * 1.5); background: rgba(14, 20, 26, 0.05); border-radius: 4px; } .tutorial .container .aside > * { margin-top: 0; margin-bottom: calc(1rem * 1.5); } .tutorial .container .aside > *:last-child { margin-bottom: 0; } .tutorial .container .aside p { font-size: 0.809rem; } .tutorial .container .aside h4 { font-size: 1.618rem; } .tutorial .container .aside ul.radio-group li label { font-size: 0.809rem; padding-left: 2rem; } .tutorial .container .content .table { border-collapse: collapse; } .tutorial .container .content .table.block { width: 100%; } .tutorial .container .content .table.fixed { table-layout: fixed; } .tutorial .container .content .table thead tr { background: rgba(14, 20, 26, 0.05); } .tutorial .container .content .table tbody tr:nth-child(odd) { background: rgba(14, 20, 26, 0.02); } .tutorial .container .content .table tbody tr:nth-child(even) { background: rgba(14, 20, 26, 0.05); } .tutorial .container .content .table tr th, .tutorial .container .content .table tr td { border-width: 0px; font-size: 0.809rem; line-height: calc(1rem * 1.5); padding: calc(0.5rem * 1.5) calc(1rem * 1.5); vertical-align: top; height: calc(2rem * 1.5); } .tutorial .container .content .btn { -webkit-transition: none 0.3s ease-in-out; -o-transition: none 0.3s ease-in-out; transition: none 0.3s ease-in-out; font-size: 0.809rem; padding: 0 calc(1rem * 1.5); margin-bottom: 1rem; margin-right: 1rem; height: calc(2rem * 1.5); line-height: calc(1rem * 1.5); } .tutorial .container .content .btn:last-child { margin-right: 0; } @media (min-width: 600px) { .tutorial .container .content .btn { margin-bottom: 0; } } .tutorial .container .content .btn.btn-inverse-accent { background: rgba(14, 20, 26, 0.1); color: rgba(14, 20, 26, 0.8); } .tutorial .container .content .btn.btn-inverse-accent:focus, .tutorial .container .content .btn.btn-inverse-accent:hover { background: rgba(14, 20, 26, 0.2); } .tutorial .sidebar-offset { padding-top: 0px; } .tutorial .container { width: 100%; max-width: 750px; padding: calc(1.5rem * 1.5) calc(1rem * 1.5); } .tutorial .container .card { max-width: 100%; padding: calc(1rem * 1.5) calc(1rem * 1.5); } @media (min-width: 960px) { .tutorial .container .card { max-width: calc(34rem + 10rem); padding: calc(1rem * 1.5) calc(2rem * 1.5); } } .tutorial .container .content section:last-child { margin: 0; } .tutorial .container .content a { -webkit-transition: none 0.3s ease-in-out; -o-transition: none 0.3s ease-in-out; transition: none 0.3s ease-in-out; color: #00d46a; text-decoration: none; border-bottom-width: 0px; } .tutorial .container .content a:hover { color: rgba(0, 212, 106, 0.6); } .tutorial .container .content .aside { margin: calc(2rem * 1.5) 0; } .tutorial .container .content .aside p, .tutorial .container .content .aside li, .tutorial .container .content .aside li label { font-size: 0.8125rem; } .tutorial .container .content .aside h6 { font-size: 1rem; } .tutorial .container .content .aside ul.radio-group li label { padding-left: 1.75rem; } .tutorial .container .content figure { text-align: left; padding: 0; } .tutorial .container .content figure img { max-width: 100%; width: auto; left: 0; } .tutorial .tutorial-page-nav { text-align: center; margin-top: 36px; } .tutorial .tutorial-page-nav .btn { margin: 0 6px 12px; font-size: 1rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } @-webkit-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } @-webkit-keyframes fadeInToRight { 0% { -webkit-transform: translate3d(-252px, 0, 0); opacity: 0; } 100% { -webkit-transform: translate3d(0, 0, 0); opacity: 1; } } @keyframes fadeInToRight { 0% { transform: translate3d(-252px, 0, 0); opacity: 0; } 100% { transform: translate3d(0, 0, 0); opacity: 1; } }