mirror of
https://github.com/aculix/vector-drawable-nextjs.git
synced 2026-06-12 21:08:35 +00:00
first commit
This commit is contained in:
@@ -1,122 +0,0 @@
|
||||
.container {
|
||||
min-height: 100vh;
|
||||
padding: 0 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.main {
|
||||
padding: 5rem 0;
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
border-top: 1px solid #eaeaea;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer img {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.title a {
|
||||
color: #0070f3;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.title a:hover,
|
||||
.title a:focus,
|
||||
.title a:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
line-height: 1.15;
|
||||
font-size: 4rem;
|
||||
}
|
||||
|
||||
.title,
|
||||
.description {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
line-height: 1.5;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.code {
|
||||
background: #fafafa;
|
||||
border-radius: 5px;
|
||||
padding: 0.75rem;
|
||||
font-size: 1.1rem;
|
||||
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
||||
Bitstream Vera Sans Mono, Courier New, monospace;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
max-width: 800px;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.card {
|
||||
margin: 1rem;
|
||||
flex-basis: 45%;
|
||||
padding: 1.5rem;
|
||||
text-align: left;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
border: 1px solid #eaeaea;
|
||||
border-radius: 10px;
|
||||
transition: color 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
|
||||
.card:hover,
|
||||
.card:focus,
|
||||
.card:active {
|
||||
color: #0070f3;
|
||||
border-color: #0070f3;
|
||||
}
|
||||
|
||||
.card h3 {
|
||||
margin: 0 0 1rem 0;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.card p {
|
||||
margin: 0;
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.grid {
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
+225
-6
@@ -1,16 +1,235 @@
|
||||
:root {
|
||||
--vd-color-surface: #1F1F1F;
|
||||
--vd-color-on-surface: rgba(255, 255, 255, 0.03);
|
||||
--vd-color-stroke: rgba(255, 255, 255, .23);
|
||||
--vd-color-text: rgba(255, 255, 255, 0.69);
|
||||
--vd-color-primary: #269BFF;
|
||||
--vd-color-light-primary: #37a3ff;
|
||||
--vd-color-dark-primary: #1a7fd6;
|
||||
--vd-color-secondary-text: rgba(255, 255, 255, 0.33);
|
||||
--vd-size-corner-radius: 24px;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||
background-color: var(--vd-color-surface);
|
||||
color: var(--vd-color-text);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 720px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.vd-form-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
.vd-title {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 3em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.vd-subtitle {
|
||||
padding: 0;
|
||||
margin: 10px 0;
|
||||
color: var(--vd-color-secondary-text);
|
||||
text-align: center;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.vd-head {
|
||||
margin-top: 60px;
|
||||
}
|
||||
|
||||
.vd-dropzone {
|
||||
cursor: pointer;
|
||||
margin-top: 24px;
|
||||
min-width: 400px;
|
||||
min-height: 400px;
|
||||
background-color: var(--vd-color-on-surface);
|
||||
border-radius: var(--vd-size-corner-radius);
|
||||
border: 2px dashed var(--vd-color-stroke);
|
||||
position: relative;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.vd-dropzone.vd-highlight {
|
||||
border: 2px dashed var(--vd-color-primary);
|
||||
}
|
||||
|
||||
.vd-dropzone.vd-active {
|
||||
border: 2px dashed var(--vd-color-primary);
|
||||
}
|
||||
|
||||
.vd-dropzone.vd-active .vd-image-container {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.vd-dropzone.vd-active .vd-placeholder {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.vd-dropzone .vd-image-container {
|
||||
flex-grow: 1;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.text-button-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin-right: 14px;
|
||||
margin-top: 12px;
|
||||
padding: 10px;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 50%;
|
||||
transition: 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.text-button-icon:hover {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
.text-button-icon:active {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
|
||||
.vd-dropzone .vd-image-container .vd-filename {
|
||||
background: rgba(0, 0, 0, .1);
|
||||
text-align: center;
|
||||
padding: 8px 14px;
|
||||
}
|
||||
|
||||
.vd-dropzone .vd-image-container .vd-filename p {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.vd-dropzone .vd-image-container .vd-image {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.vd-dropzone .vd-image-container .vd-image img {
|
||||
max-width: 300px;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
|
||||
.vd-placeholder {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.vd-download {
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
color: inherit;
|
||||
background: var(--vd-color-primary);
|
||||
font-size: 1.2em;
|
||||
border: none;
|
||||
min-width: 400px;
|
||||
border-radius: calc(var(--vd-size-corner-radius) / 1.5);
|
||||
padding: 14px 0;
|
||||
outline: none;
|
||||
transition: .23s ease;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
-webkit-touch-callout: none; /* iOS Safari */
|
||||
-webkit-user-select: none; /* Safari */
|
||||
-khtml-user-select: none; /* Konqueror HTML */
|
||||
-moz-user-select: none; /* Old versions of Firefox */
|
||||
-ms-user-select: none; /* Internet Explorer/Edge */
|
||||
user-select: none; /* Non-prefixed version, currently
|
||||
supported by Chrome, Edge, Opera and Firefox */
|
||||
}
|
||||
|
||||
button:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
|
||||
button svg {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
fill: var(--vd-color-text);
|
||||
margin-right: 8px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
button:disabled svg {
|
||||
fill: rgba(255, 255,255, 0.17);
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
background: #1C1C1C;
|
||||
color: rgba(255, 255,255, 0.17);
|
||||
}
|
||||
|
||||
button:not(:disabled):hover {
|
||||
background: var(--vd-color-light-primary);
|
||||
}
|
||||
|
||||
button:not(:disabled):active {
|
||||
background: var(--vd-color-dark-primary);
|
||||
}
|
||||
|
||||
.vd-placeholder svg {
|
||||
max-width: 48px;
|
||||
max-height: 48px;
|
||||
fill: var(--vd-color-secondary-text);
|
||||
}
|
||||
|
||||
.vd-footer {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.vd-github svg {
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user