Hasli4

Untitled

Jun 20th, 2026
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. * {
  2. box-sizing: border-box;
  3. }
  4. html,
  5. body {
  6. height: 100%;
  7. }
  8.  
  9. body {
  10. background: white;
  11. margin: 0;
  12. display: flex;
  13. flex-direction: column;
  14. min-height: 100vh;
  15. overflow: hidden;
  16. }
  17.  
  18. .header {
  19. min-height: 100px;
  20. width: 100%;
  21. display: flex;
  22. flex-wrap: wrap;
  23. gap: 12px;
  24. /* background-color: rgb(31, 185, 95); */
  25. backdrop-filter: blur(2.5px);
  26. background-color: rgba(31, 185, 95, 0.5);
  27. justify-content: center;
  28. align-items: center;
  29. padding: 10px;
  30. flex-shrink: 0;
  31. }
  32. .footer {
  33. min-height: 50px;
  34. padding: 10px;
  35. display: flex;
  36. align-items: center;
  37. justify-content: center;
  38. border-top: 1px solid rgba(255, 255, 255, 0.15);
  39. width: 100%;
  40. border: 1px solid darkblue;
  41. backdrop-filter: blur(2.5px);
  42. background-color: rgba(0, 0, 139, 0.5);
  43. flex-shrink: 0;
  44. }
  45.  
  46. .field {
  47. width: min(100%, 1000px, calc((100vh - 230px) * 2.5));
  48. height: auto;
  49. min-width: 620px;
  50. overflow: hidden;
  51. display: grid;
  52. grid-template-columns: repeat(50, minmax(0, 1fr));
  53. grid-template-rows: repeat(20, minmax(0, 1fr));
  54. aspect-ratio: 50 / 20;
  55. gap: 1px;
  56. border: 1px solid black;
  57. touch-action: none;
  58. }
  59. .cell {
  60. width: 100%;
  61. height: 100%;
  62. border: 1px solid black;
  63. background-color: white;
  64. user-select: none;
  65. touch-action: none;
  66. }
  67. .cell:hover {
  68. filter: brightness(0.75);
  69. background-color: rgb(255, 255, 255);
  70. }
  71. .workspace {
  72. flex: 1;
  73. min-height: 0;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. overflow: auto;
  78. padding: 12px;
  79. }
  80.  
  81. .logo img {
  82. width: 100px;
  83. height: 100px;
  84. border: 2px solid black;
  85. object-fit: cover;
  86. display: block;
  87. }
  88.  
  89. .color-picker {
  90. border-radius: 5px;
  91. border: 2.5px solid black;
  92. display: flex;
  93. width: 450px;
  94. height: 100px;
  95. background-color: whitesmoke;
  96. flex-direction: row;
  97. overflow-y: scroll;
  98. justify-content: center;
  99. align-items: center;
  100. width: min(100%, 720px);
  101. padding: 8px;
  102. gap: 8px;
  103. flex-wrap: wrap;
  104. justify-content: center;
  105. align-items: center;
  106. background-color: whitesmoke;
  107. }
  108.  
  109. .colors,
  110. .addons {
  111. min-height: 56px;
  112. padding: 8px;
  113. gap: 6px;
  114. background: white;
  115. justify-content: center;
  116. align-items: center;
  117. }
  118.  
  119. .red,
  120. .black,
  121. .green,
  122. .blue,
  123. .purple,
  124. .yellow,
  125. .brown,
  126. .pink,
  127. .erase {
  128. width: 28px;
  129. height: 28px;
  130. margin: 0;
  131. }
  132.  
  133. .paint-all,
  134. .clear,
  135. .save-image {
  136. height: 30px;
  137. padding: 0 14px;
  138. background-color: lightgray;
  139. font-family: inherit;
  140. }
  141.  
  142. .copyright {
  143. margin: 0;
  144. }
  145.  
  146. .button_draw {
  147. width: fit-content;
  148. padding: 0.45rem 0.6rem;
  149. border: 2px solid black;
  150. border-radius: 6px;
  151. color: black;
  152. margin-right: 1em;
  153. user-select: none;
  154. cursor: pointer;
  155. }
  156. .copyright {
  157. width: fit-content;
  158. padding: 0.45rem 0.6rem;
  159. border: 2px solid rgb(255, 255, 255);
  160. border-radius: 6px;
  161. color: rgb(255, 255, 255);
  162. margin: 5px;
  163. user-select: none;
  164. }
  165. main {
  166. margin: 0px;
  167. border-top: 1px solid darkblue;
  168. width: 100%;
  169. height: calc(100vh - 200px);
  170. display: flex;
  171. flex-wrap: wrap;
  172. border: 0.1px solid black;
  173. border-bottom: 1px solid rgba(31, 185, 95, 0.5);
  174. }
  175. .button_back {
  176. background: white;
  177. width: 49px;
  178. height: 55px;
  179. padding: 0.45rem 0.6rem;
  180. border: 2px solid black;
  181. border-radius: 6px;
  182. color: black;
  183. margin-right: 1em;
  184. user-select: none;
  185. cursor: pointer;
  186. font-size: large;
  187. }
  188.  
  189. .gallery-link {
  190. display: inline-flex;
  191. align-items: center;
  192. justify-content: center;
  193. min-height: 42px;
  194. padding: 0 14px;
  195. border: 2px solid black;
  196. border-radius: 6px;
  197. background: white;
  198. color: black;
  199. font-family: "Archivo Black", Arial, sans-serif;
  200. text-decoration: none;
  201. user-select: none;
  202. cursor: pointer;
  203. }
  204.  
  205. .gallery-link:hover,
  206. .button_back:hover,
  207. .paint-all:hover,
  208. .clear:hover,
  209. .save-image:hover {
  210. filter: brightness(0.94);
  211. }
  212.  
  213. .save-notice {
  214. position: fixed;
  215. right: 18px;
  216. bottom: 72px;
  217. max-width: min(360px, calc(100% - 32px));
  218. padding: 14px 16px;
  219. border: 2px solid black;
  220. border-radius: 8px;
  221. background: white;
  222. color: black;
  223. box-shadow: 6px 6px 0 black;
  224. font-family: "Archivo Black", Arial, sans-serif;
  225. line-height: 1.35;
  226. opacity: 0;
  227. transform: translateY(14px);
  228. pointer-events: none;
  229. transition:
  230. opacity 180ms ease,
  231. transform 180ms ease;
  232. z-index: 30;
  233. }
  234.  
  235. .save-notice.is-visible {
  236. opacity: 1;
  237. transform: translateY(0);
  238. }
  239.  
  240. .save-notice.is-error {
  241. border-color: #b00020;
  242. color: #b00020;
  243. }
  244.  
  245. .save-notice a {
  246. color: darkblue;
  247. }
  248. .black {
  249. border-radius: 5px;
  250. width: 25px;
  251. height: 25px;
  252. border: 2px solid black;
  253. background-color: black;
  254. margin: 5px;
  255. }
  256. .red {
  257. border-radius: 5px;
  258. width: 25px;
  259. height: 25px;
  260. border: 2px solid black;
  261. background-color: red;
  262. margin: 5px;
  263. }
  264. .green {
  265. border-radius: 5px;
  266. width: 25px;
  267. height: 25px;
  268. border: 2px solid black;
  269. background-color: green;
  270. margin: 5px;
  271. }
  272. .blue {
  273. border-radius: 5px;
  274. width: 25px;
  275. height: 25px;
  276. border: 2px solid black;
  277. background-color: blue;
  278. margin: 5px;
  279. }
  280. .purple {
  281. border-radius: 5px;
  282. width: 25px;
  283. height: 25px;
  284. border: 2px solid black;
  285. background-color: purple;
  286. margin: 5px;
  287. }
  288. .yellow {
  289. border-radius: 5px;
  290. width: 25px;
  291. height: 25px;
  292. border: 2px solid black;
  293. background-color: yellow;
  294. margin: 5px;
  295. }
  296. .brown {
  297. border-radius: 5px;
  298. width: 25px;
  299. height: 25px;
  300. border: 2px solid black;
  301. background-color: brown;
  302. margin: 5px;
  303. }
  304. .pink {
  305. border-radius: 5px;
  306. width: 25px;
  307. height: 25px;
  308. border: 2px solid black;
  309. background-color: pink;
  310. margin: 5px;
  311. }
  312. .erase {
  313. border-radius: 5px;
  314. width: 25px;
  315. height: 25px;
  316. border: 2px solid black;
  317. background-color: white;
  318. margin: 5px;
  319. }
  320. .paint-all {
  321. border-radius: 5px;
  322. width: 100px;
  323. height: 25px;
  324. border: 2px solid black;
  325. background-color: lightgray;
  326. user-select: none;
  327. cursor: pointer;
  328. margin: 5px;
  329. }
  330. .addons {
  331. border: 2.5px solid black;
  332. border-radius: 5px;
  333. display: flex;
  334. gap: 5px;
  335. width: 200px;
  336. height: 40px;
  337. margin: 5px;
  338. justify-content: center;
  339. align-items: center;
  340. overflow-y: scroll;
  341. flex-wrap: wrap;
  342. }
  343. .colors {
  344. border: 2.5px solid black;
  345. border-radius: 5px;
  346. display: flex;
  347. gap: 5px;
  348. width: 150px;
  349. height: 40px;
  350. margin: 5px;
  351. justify-content: center;
  352. align-items: center;
  353. flex-wrap: wrap;
  354. overflow-y: scroll;
  355. }
  356. .clear {
  357. border-radius: 5px;
  358. width: 100px;
  359. height: 22.222222222222222222px;
  360. border: 2px solid black;
  361. background-color: lightgrey;
  362. user-select: none;
  363. cursor: pointer;
  364. }
  365. .save-image {
  366. border-radius: 5px;
  367. width: 100px;
  368. height: 22.222222222222222222px;
  369. border: 2px solid black;
  370. background-color: lightgrey;
  371. user-select: none;
  372. cursor: pointer;
  373. }
  374. @media (max-width: 900px) {
  375. .field {
  376. min-width: 520px;
  377. }
  378. }
  379.  
  380. @media (max-width: 640px) {
  381. body {
  382. overflow: auto;
  383. }
  384.  
  385. .field {
  386. min-width: 460px;
  387. min-height: 300px;
  388. }
  389.  
  390. .color-picker {
  391. width: 100%;
  392. }
  393. }
  394.  
Advertisement
Add Comment
Please, Sign In to add comment