Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,113 @@
.button {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 16px;
border-radius: 4px;
background: $button__bg-color;
color: $button__color;
font: 600 12px/16px "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0;
cursor: pointer;
&:focus {
outline: none;
}
&:hover,
&:focus {
background: $button__bg-color--hover;
}
}
a {
&.button:hover {
text-decoration: none;
}
}
.button--ghost {
background: transparent;
color: $button-ghost__color;
&:hover,
&:focus {
background: transparent;
text-decoration: underline;
}
}
.button--outline {
border: 1px solid $button-outline__border-color;
background: $button-outline__bg-color;
color: $button-outline__color;
&:hover,
&:focus {
background: $button-outline__bg-color--hover;
}
}
.button--cta {
padding-top: 1em;
padding-bottom: 1em;
background: $button-cta__bg-color;
color: $button-cta__color;
font-size: 16px;
&:hover,
&:focus {
background: $button-cta__bg-color--hover;
}
}
.button--small {
padding: 8px 12px;
font: 600 10px/14px "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-transform: uppercase;
}
.button--alert {
background: $button-alert__bg-color;
&:hover,
&:focus {
background: $button-alert__bg-color--hover;
}
}
.button-icon {
width: 14px;
height: 14px;
margin-right: 8px;
}
.button--last {
padding-right: 0;
}
.buttonLink {
display: inline-block;
overflow: hidden;
font: 600 12px/16px "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0;
text-transform: uppercase;
svg {
margin-right: 8px;
transform: translate3d(0, 0, 0);
transition: transform 300ms ease-in;
}
&:hover {
svg {
transform: translate3d(4px, 0, 0);
}
}
&.buttonLink--center {
width: 100%;
text-align: center;
}
}
@@ -0,0 +1,117 @@
.checkbox {
position: relative;
.checkbox-decoration {
display: flex;
position: relative;
width: 24px;
height: 24px;
overflow: hidden;
border: 1px solid $checkbox__border-color;
border-radius: 2px;
pointer-events: none;
}
.checkbox-check {
transform-origin: 50% 50%;
stroke-width: 2;
stroke-dasharray: 48;
stroke-dashoffset: 48;
stroke: $checkbox-stroke__color;
}
.checkbox-decorationMedia {
display: flex;
position: relative;
width: 18px;
margin-right: auto;
margin-left: auto;
transform: translateY(3px);
}
.checkbox-input {
position: absolute;
-webkit-appearance: none;
appearance: none;
top: 0;
left: 0;
width: 24px;
height: 24px;
margin: 0;
padding: 0;
border-radius: 3px;
background: $checkbox__bg-color;
cursor: pointer;
&::before {
content: ' ';
position: absolute;
width: 100%;
height: 100%;
background-image: url('../assets/icons/common/check-hover.svg');
background-repeat: no-repeat;
background-position: center;
}
&::after {
content: '';
position: absolute;
top: -3px;
left: -3px;
width: calc(100% + 6px);
height: calc(100% + 6px);
}
&:hover + .checkbox-decoration {
border: 1px solid $checkbox__border-color--hover;
}
&.is-selected,
&:checked {
+ .checkbox-decoration {
border: 1px solid $checkbox__border-color--hover;
&::before {
content: "";
display: block;
position: absolute;
top: calc(50% - 12px);
left: calc(50% - 12px);
width: 24px;
height: 24px;
animation: radioIn 300ms;
border-radius: 3px;
opacity: 1;
animation-fill-mode: forwards;
background: $checkbox__bg-color--selected;
}
.checkbox-check {
animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 300ms forwards;
}
}
}
&:focus {
outline: none;
}
}
}
@keyframes stroke {
100% {
stroke-dashoffset: 0;
}
}
@keyframes radioIn {
0% {
transform: scale3d(0.3, 0.3, 0.3);
opacity: 0;
}
to {
transform: scale3d(1, 1, 1);
opacity: 1;
}
}
@@ -0,0 +1,8 @@
// Variables for code block theme
.CodeMirror {
height: auto;
margin: 16px 0;
padding: 16px;
line-height: 28px;
}
@@ -0,0 +1,71 @@
// Footer
.footer {
padding-top: 30px;
padding-bottom: 30px;
@media (max-width: $layout-mobile) {
flex-direction: column-reverse;
}
}
.footer-block {
display: flex;
justify-content: space-between;
@media (max-width: $layout-mobile) {
flex-direction: column-reverse;
}
.footer-link:first-child {
padding-right: 42px;
}
}
.footer-link {
display: block;
width: 50%;
margin-bottom: 48px;
@media (max-width: $layout-mobile) {
width: unset;
margin-bottom: 36px;
}
&:hover {
text-decoration: none;
.title-link {
color: $primary-color;
}
.chevron .chevron-path {
fill: $primary-color;
}
}
.chevron {
display: inline-block;
margin-left: 8px;
}
}
.title-link {
margin-bottom: 4px;
white-space: nowrap;
}
.footer-logo {
@media (max-width: $layout-mobile) {
display: flex;
justify-content: center;
}
}
.carto-logo {
width: 72px;
@media (max-width: $layout-mobile) {
width: 64px;
margin: 28px 0 16px;
}
}
@@ -0,0 +1,4 @@
.welcome-first__link {
color: $white;
text-decoration: underline;
}