Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * {
- box-sizing: border-box;
- }
- html,
- body {
- height: 100%;
- }
- body {
- background: white;
- margin: 0;
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- overflow: hidden;
- }
- .header {
- min-height: 100px;
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- gap: 12px;
- /* background-color: rgb(31, 185, 95); */
- backdrop-filter: blur(2.5px);
- background-color: rgba(31, 185, 95, 0.5);
- justify-content: center;
- align-items: center;
- padding: 10px;
- flex-shrink: 0;
- }
- .footer {
- min-height: 50px;
- padding: 10px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-top: 1px solid rgba(255, 255, 255, 0.15);
- width: 100%;
- border: 1px solid darkblue;
- backdrop-filter: blur(2.5px);
- background-color: rgba(0, 0, 139, 0.5);
- flex-shrink: 0;
- }
- .field {
- width: min(100%, 1000px, calc((100vh - 230px) * 2.5));
- height: auto;
- min-width: 620px;
- overflow: hidden;
- display: grid;
- grid-template-columns: repeat(50, minmax(0, 1fr));
- grid-template-rows: repeat(20, minmax(0, 1fr));
- aspect-ratio: 50 / 20;
- gap: 1px;
- border: 1px solid black;
- touch-action: none;
- }
- .cell {
- width: 100%;
- height: 100%;
- border: 1px solid black;
- background-color: white;
- user-select: none;
- touch-action: none;
- }
- .cell:hover {
- filter: brightness(0.75);
- background-color: rgb(255, 255, 255);
- }
- .workspace {
- flex: 1;
- min-height: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- overflow: auto;
- padding: 12px;
- }
- .logo img {
- width: 100px;
- height: 100px;
- border: 2px solid black;
- object-fit: cover;
- display: block;
- }
- .color-picker {
- border-radius: 5px;
- border: 2.5px solid black;
- display: flex;
- width: 450px;
- height: 100px;
- background-color: whitesmoke;
- flex-direction: row;
- overflow-y: scroll;
- justify-content: center;
- align-items: center;
- width: min(100%, 720px);
- padding: 8px;
- gap: 8px;
- flex-wrap: wrap;
- justify-content: center;
- align-items: center;
- background-color: whitesmoke;
- }
- .colors,
- .addons {
- min-height: 56px;
- padding: 8px;
- gap: 6px;
- background: white;
- justify-content: center;
- align-items: center;
- }
- .red,
- .black,
- .green,
- .blue,
- .purple,
- .yellow,
- .brown,
- .pink,
- .erase {
- width: 28px;
- height: 28px;
- margin: 0;
- }
- .paint-all,
- .clear,
- .save-image {
- height: 30px;
- padding: 0 14px;
- background-color: lightgray;
- font-family: inherit;
- }
- .copyright {
- margin: 0;
- }
- .button_draw {
- width: fit-content;
- padding: 0.45rem 0.6rem;
- border: 2px solid black;
- border-radius: 6px;
- color: black;
- margin-right: 1em;
- user-select: none;
- cursor: pointer;
- }
- .copyright {
- width: fit-content;
- padding: 0.45rem 0.6rem;
- border: 2px solid rgb(255, 255, 255);
- border-radius: 6px;
- color: rgb(255, 255, 255);
- margin: 5px;
- user-select: none;
- }
- main {
- margin: 0px;
- border-top: 1px solid darkblue;
- width: 100%;
- height: calc(100vh - 200px);
- display: flex;
- flex-wrap: wrap;
- border: 0.1px solid black;
- border-bottom: 1px solid rgba(31, 185, 95, 0.5);
- }
- .button_back {
- background: white;
- width: 49px;
- height: 55px;
- padding: 0.45rem 0.6rem;
- border: 2px solid black;
- border-radius: 6px;
- color: black;
- margin-right: 1em;
- user-select: none;
- cursor: pointer;
- font-size: large;
- }
- .gallery-link {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-height: 42px;
- padding: 0 14px;
- border: 2px solid black;
- border-radius: 6px;
- background: white;
- color: black;
- font-family: "Archivo Black", Arial, sans-serif;
- text-decoration: none;
- user-select: none;
- cursor: pointer;
- }
- .gallery-link:hover,
- .button_back:hover,
- .paint-all:hover,
- .clear:hover,
- .save-image:hover {
- filter: brightness(0.94);
- }
- .save-notice {
- position: fixed;
- right: 18px;
- bottom: 72px;
- max-width: min(360px, calc(100% - 32px));
- padding: 14px 16px;
- border: 2px solid black;
- border-radius: 8px;
- background: white;
- color: black;
- box-shadow: 6px 6px 0 black;
- font-family: "Archivo Black", Arial, sans-serif;
- line-height: 1.35;
- opacity: 0;
- transform: translateY(14px);
- pointer-events: none;
- transition:
- opacity 180ms ease,
- transform 180ms ease;
- z-index: 30;
- }
- .save-notice.is-visible {
- opacity: 1;
- transform: translateY(0);
- }
- .save-notice.is-error {
- border-color: #b00020;
- color: #b00020;
- }
- .save-notice a {
- color: darkblue;
- }
- .black {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: black;
- margin: 5px;
- }
- .red {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: red;
- margin: 5px;
- }
- .green {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: green;
- margin: 5px;
- }
- .blue {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: blue;
- margin: 5px;
- }
- .purple {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: purple;
- margin: 5px;
- }
- .yellow {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: yellow;
- margin: 5px;
- }
- .brown {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: brown;
- margin: 5px;
- }
- .pink {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: pink;
- margin: 5px;
- }
- .erase {
- border-radius: 5px;
- width: 25px;
- height: 25px;
- border: 2px solid black;
- background-color: white;
- margin: 5px;
- }
- .paint-all {
- border-radius: 5px;
- width: 100px;
- height: 25px;
- border: 2px solid black;
- background-color: lightgray;
- user-select: none;
- cursor: pointer;
- margin: 5px;
- }
- .addons {
- border: 2.5px solid black;
- border-radius: 5px;
- display: flex;
- gap: 5px;
- width: 200px;
- height: 40px;
- margin: 5px;
- justify-content: center;
- align-items: center;
- overflow-y: scroll;
- flex-wrap: wrap;
- }
- .colors {
- border: 2.5px solid black;
- border-radius: 5px;
- display: flex;
- gap: 5px;
- width: 150px;
- height: 40px;
- margin: 5px;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap;
- overflow-y: scroll;
- }
- .clear {
- border-radius: 5px;
- width: 100px;
- height: 22.222222222222222222px;
- border: 2px solid black;
- background-color: lightgrey;
- user-select: none;
- cursor: pointer;
- }
- .save-image {
- border-radius: 5px;
- width: 100px;
- height: 22.222222222222222222px;
- border: 2px solid black;
- background-color: lightgrey;
- user-select: none;
- cursor: pointer;
- }
- @media (max-width: 900px) {
- .field {
- min-width: 520px;
- }
- }
- @media (max-width: 640px) {
- body {
- overflow: auto;
- }
- .field {
- min-width: 460px;
- min-height: 300px;
- }
- .color-picker {
- width: 100%;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment