├── css └── styles.css ├── index.html └── js └── scripts.js /css/styles.css: -------------------------------------------------------------------------------- 1 | * { 2 | font-family: "Verdana"; 3 | margin: 0; 4 | padding: 0; 5 | } 6 | 7 | h2 { 8 | margin-bottom: 1.6rem; 9 | text-align: center; 10 | color: #333; 11 | } 12 | 13 | #box-shadow-generator { 14 | display: flex; 15 | max-width: 1000px; 16 | margin: 0 auto; 17 | } 18 | 19 | #controls-container, 20 | #preview { 21 | flex: 1; 22 | padding: 2rem; 23 | } 24 | 25 | /* Controls */ 26 | .form-control { 27 | display: flex; 28 | padding-bottom: 1.2rem; 29 | margin-bottom: 1.2rem; 30 | border-bottom: 1px dashed #ccc; 31 | } 32 | 33 | .form-control label { 34 | font-weight: bold; 35 | margin-bottom: 1rem; 36 | color: #555; 37 | } 38 | 39 | .range-input { 40 | display: flex; 41 | flex-direction: column; 42 | flex: 1; 43 | } 44 | 45 | .range-input input[type="range"] { 46 | -webkit-appearance: none; 47 | width: 100%; 48 | height: 24px; 49 | background: #d3d3d3; 50 | outline: none; 51 | } 52 | 53 | .range-input input[type="range"]::-webkit-slider-thumb { 54 | -webkit-appearance: none; 55 | appearance: none; 56 | width: 25px; 57 | height: 25px; 58 | background: #e9d60a; 59 | cursor: pointer; 60 | } 61 | 62 | .reference-input { 63 | display: flex; 64 | align-items: center; 65 | } 66 | 67 | .reference-input p { 68 | margin-left: 4px; 69 | } 70 | 71 | .form-control input[type="text"] { 72 | height: 30px; 73 | width: 40px; 74 | margin-left: 1rem; 75 | text-align: center; 76 | } 77 | 78 | /* Comu */ 79 | #color-value { 80 | min-width: 100px; 81 | } 82 | 83 | #inset { 84 | align-self: start; 85 | height: 20px; 86 | width: 20px; 87 | } 88 | 89 | /* Preview */ 90 | #box { 91 | width: 100%; 92 | height: 300px; 93 | background-color: #e9d60a; 94 | } 95 | 96 | /* Área de geração */ 97 | #generated-rule { 98 | text-align: center; 99 | margin-bottom: 2rem; 100 | padding: 0 2rem; 101 | } 102 | 103 | #generated-rule p { 104 | margin-bottom: 0.5rem; 105 | } 106 | 107 | #rules-area { 108 | background-color: #d3d3d3; 109 | max-width: 900px; 110 | margin: 0 auto; 111 | border: 2px solid #e9d60a; 112 | padding: 1rem; 113 | cursor: pointer; 114 | transition: 0.4s; 115 | } 116 | 117 | #rules-area:hover { 118 | background-color: #dfdfdf; 119 | } 120 | 121 | #copy-instructions { 122 | margin-top: 1rem; 123 | font-style: italic; 124 | } 125 | 126 | /* Responsivo */ 127 | @media (max-width: 425px) { 128 | #controls-container, 129 | #preview { 130 | padding: 1rem 2rem; 131 | } 132 | 133 | #box-shadow-generator { 134 | flex-direction: column; 135 | } 136 | 137 | #box { 138 | width: 60%; 139 | height: 200px; 140 | margin: 0 auto; 141 | } 142 | 143 | #generated-rule { 144 | margin-top: 1.5rem; 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |px
30 |px
47 |px
64 |px
81 |box-shadow:
125 |-webkit-box-shadow:
126 |-moz-box-shadow:
127 |Clique no quadro acima para copiar as regras
129 |