├── README.md ├── demoForm.html ├── qfc-dark.css ├── qfc-light.css └── resource ├── addClass.png ├── demoImg.gif ├── themes.jpg └── transition.gif /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ##### Quick Form CSS is an easy-to-use fully-responsive CSS Boilerplate for simple html forms. 4 | 5 | ---------- 6 | 7 | This CSS boilerplate converts any simple html form into a material design minimalistic webform in seconds. 8 | 9 | 10 | > Current version 2.2.2 enables Google like input placeholder transitions 11 | 12 | 13 | > **Note** [Quick-Form-Css](https://github.com/siwalikm/quick-form-css) is created solely for the purpose of quick templating your html-webforms with the zero efforts. This project is a *Work-In-Progress* and might result in undesirable result at times. 14 | 15 | ---------- 16 | 17 | Themes 18 | ------------- 19 | Quick-Form-Css comes with two themes by default, **qfc-dark** and **qfc-light**. 20 | **qfc-dark.css** is the theme on the left with Google forms inspired style [(url)](https://cdn.jsdelivr.net/gh/siwalikm/quick-form-css@2.2.2/qfc-dark.css), 21 | **qfc-light.css** is the theme on the right with a more minimal look. [(url)](https://cdn.jsdelivr.net/gh/siwalikm/quick-form-css@2.2.2/qfc-light.css). 22 | 23 | 24 | 25 | ---------- 26 | 27 | Usage 28 | ------------- 29 | 30 | 1. In the **head section** of your html document, include the css theme you like: 31 | 32 | > `` 33 | 34 | or 35 | 36 | > `` 37 | 38 | 2. In the **head section**, also add the meta viewport for the form to work correctly on handheld devices. 39 | > `` 40 | 41 | 3. Wrap your html form in a **`div`** with **`class="qfc-container"`** like this: 42 | > 43 | 44 | **Awesome, you did it!** 45 | 46 | Change Color(s) 47 | ------------- 48 | To change theme color or background color of your form, edit the values of these css variables in your stylesheet. 49 | 50 | .qfc-container { 51 | --form-theme-color: mediumaquamarine; 52 | --form-bg-color : white; 53 | --button-hover : gray; 54 | --input-text-color: black; 55 | } 56 | body { 57 | --main-bg-color: white; 58 | } 59 | 60 | Titles and Sub-titles(s) 61 | ------------- 62 | Quick-Form-Css supports meterial design specifications for headers from h1 to h6 [(link)](http://brm.io/material-design-type/). 63 | 64 | All headers tags come with the default underline style. Please add class *"no-underline"* in your header element if you want to modify this behaviour. 65 | -------------------------------------------------------------------------------- /demoForm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |

Form Title

13 | 14 |
15 |
16 |
17 | 18 |
19 |
20 | 21 |
22 |
23 | 24 |
25 |
26 | 27 |
28 | 31 |
32 |
33 | 36 |
37 |
38 |
39 |
40 | 41 | 42 |
43 |
44 |
45 | 46 | 52 |
53 |
54 | 55 | 61 |
62 |
63 | 64 |
65 | 66 |
67 |
68 |
69 | 70 |
71 | 72 |
73 |
74 |
75 | 76 |
77 |
78 |
79 |
80 | 81 |
82 | made with by @siwalik and the internet
83 | 89 | 90 | -------------------------------------------------------------------------------- /qfc-dark.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Roboto'); 2 | @import url("https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"); 3 | body { 4 | --main-bg-color: #2B2B2B; 5 | background: var(--main-bg-color); 6 | } 7 | 8 | .qfc-container { 9 | --form-theme-color: #00bcd4; 10 | --form-bg-color: white; 11 | --input-text-color: black; 12 | --button-hover: #4e5050; 13 | --input-bg-gray: #E2E5E5; 14 | /* border: 7px solid var(--form-theme-color); */ 15 | border-top: 7px solid var(--form-theme-color); 16 | font-size: 1em; 17 | font-family: 'Roboto', sans-serif; 18 | background-color: var(--form-bg-color); 19 | padding: 35px; 20 | width: 700px; 21 | margin: 30px auto; 22 | margin-top: 30px; 23 | } 24 | 25 | .qfc-container ::-webkit-input-placeholder { 26 | /* Chrome/Opera/Safari */ 27 | color: var(--input-text-color); 28 | } 29 | 30 | .qfc-container ::-moz-placeholder { 31 | /* Firefox 19+ */ 32 | color: var(--input-text-color); 33 | } 34 | 35 | .qfc-container :-ms-input-placeholder { 36 | /* IE 10+ */ 37 | color: var(--input-text-color); 38 | } 39 | 40 | .qfc-container :-moz-placeholder { 41 | /* Firefox 18- */ 42 | color: var(--input-text-color); 43 | } 44 | 45 | .qfc-container input { 46 | width: 200px; 47 | display: block; 48 | border: none; 49 | padding: 12px !important; 50 | border-bottom: solid 1px var(--form-theme-color); 51 | -webkit-transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); 52 | transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); 53 | background-repeat: no-repeat; 54 | color: var(--input-text-color); 55 | } 56 | 57 | .qfc-container input:focus, 58 | input:valid { 59 | box-shadow: none; 60 | outline: none; 61 | background-position: 0 0; 62 | } 63 | 64 | .qfc-container input::-webkit-input-placeholder { 65 | font-family: 'roboto', sans-serif; 66 | -webkit-transition: all 0.3s ease-in-out; 67 | transition: all 0.3s ease-in-out; 68 | } 69 | 70 | .qfc-container input:focus::-webkit-input-placeholder, 71 | input:valid::-webkit-input-placeholder { 72 | color: var(--form-theme-color); 73 | font-size: 11px; 74 | -webkit-transform: translateY(-20px); 75 | transform: translateY(-20px); 76 | visibility: visible !important; 77 | } 78 | 79 | .qfc-container h1 { 80 | font-size: 112px; 81 | font-weight: 300; 82 | letter-spacing: -5px; 83 | line-height: 128px; 84 | } 85 | 86 | .qfc-container h2 { 87 | font-size: 56px; 88 | line-height: 64px; 89 | } 90 | 91 | .qfc-container h3 { 92 | font-size: 45px; 93 | line-height: 64px; 94 | } 95 | 96 | .qfc-container h4 { 97 | font-size: 34px; 98 | line-height: 52px; 99 | } 100 | 101 | .qfc-container h5 { 102 | font-size: 24px; 103 | line-height: 44px; 104 | } 105 | 106 | .qfc-container h6 { 107 | font-size: 20px; 108 | font-weight: 600; 109 | line-height: 44px; 110 | } 111 | 112 | .qfc-container h1, 113 | h2, 114 | h3, 115 | h4, 116 | h5, 117 | h6 { 118 | text-decoration: none; 119 | position: relative; 120 | margin: 50px 0 0; 121 | font-weight: 400; 122 | } 123 | 124 | .qfc-container h1:not(.no-underline):after, 125 | .qfc-container h2:not(.no-underline):after, 126 | .qfc-container h3:not(.no-underline):after, 127 | .qfc-container h4:not(.no-underline):after, 128 | .qfc-container h5:not(.no-underline):after, 129 | .qfc-container h6:not(.no-underline):after { 130 | content: ''; 131 | position: relative; 132 | display: block; 133 | bottom: 0; 134 | margin-bottom: 31px; 135 | width: 100%; 136 | border: 3px solid var(--form-theme-color); 137 | } 138 | 139 | .qfc-container .no-underline+h1, 140 | .qfc-container .no-underline+h2, 141 | .qfc-container .no-underline+h3, 142 | .qfc-container .no-underline+h4, 143 | .qfc-container .no-underline+h5, 144 | .qfc-container .no-underline+h6 { 145 | margin-top: 0; 146 | } 147 | 148 | .qfc-container input[type="checkbox"] { 149 | margin-left: 0px; 150 | display: inline-block; 151 | position: relative; 152 | -webkit-appearance: none; 153 | height: 2em; 154 | width: 4em; 155 | border-radius: 1.5em; 156 | background-color: var(--input-bg-gray); 157 | border: none; 158 | background-clip: padding-box; 159 | color: #919FAF; 160 | vertical-align: middle; 161 | } 162 | 163 | .qfc-container input[type="checkbox"]::before { 164 | content: ""; 165 | position: absolute; 166 | left: 0; 167 | top: 0; 168 | bottom: 0; 169 | right: 50%; 170 | background-color: white; 171 | border-radius: 100%; 172 | border: 2px solid transparent; 173 | -webkit-transition: all 0.5s ease; 174 | transition: all 0.5s ease; 175 | background-clip: padding-box; 176 | z-index: 2; 177 | } 178 | 179 | .qfc-container input[type="checkbox"]::after { 180 | position: absolute; 181 | left: 0.675em; 182 | top: 0.35em; 183 | font-family: "Ionicons"; 184 | content: "\f122\f12a"; 185 | letter-spacing: 0.75em; 186 | z-index: 1; 187 | } 188 | 189 | .qfc-container label { 190 | font-weight: 400; 191 | } 192 | 193 | .qfc-container input[type="checkbox"]:focus, 194 | input[type="radio"]:focus { 195 | color: white; 196 | border: none; 197 | border-color: transparent; 198 | background-color: #919FAF; 199 | } 200 | 201 | .qfc-container input[type="checkbox"]:checked { 202 | color: white; 203 | background-color: var(--form-theme-color); 204 | border-color: transparent; 205 | } 206 | 207 | .qfc-container input[type="checkbox"]:checked::before { 208 | -webkit-transform: translateX(100%); 209 | transform: translateX(100%); 210 | } 211 | 212 | .qfc-container form { 213 | padding-top: 20px; 214 | } 215 | 216 | .qfc-container div { 217 | margin-top: 5px; 218 | margin-bottom: 15px; 219 | } 220 | 221 | .qfc-container input[type="radio"] { 222 | width: 30px; 223 | display: inline-block; 224 | } 225 | 226 | .qfc-container input, 227 | select { 228 | border: none; 229 | border-bottom: 1px solid var(--form-theme-color); 230 | color: var(--input-text-color); 231 | font-family: sans-serif; 232 | font-weight: 500; 233 | font-size: 1em; 234 | border-radius: 0; 235 | line-height: 22px; 236 | display: block; 237 | padding: 5px; 238 | width: 60%; 239 | -webkit-box-sizing: border-box; 240 | -moz-box-sizing: border-box; 241 | -ms-box-sizing: border-box; 242 | box-sizing: border-box; 243 | } 244 | 245 | .qfc-container textarea { 246 | border: none; 247 | border-bottom: 2px solid var(--form-theme-color); 248 | color: var(--input-text-color); 249 | font-weight: 500; 250 | font-size: 1em; 251 | border-radius: 0; 252 | line-height: 22px; 253 | display: block; 254 | padding: 5px; 255 | width: 100%; 256 | -webkit-box-sizing: border-box; 257 | -moz-box-sizing: border-box; 258 | -ms-box-sizing: border-box; 259 | box-sizing: border-box; 260 | } 261 | 262 | .qfc-container input:focus, 263 | textarea:focus, 264 | select:focus { 265 | border-bottom: 3px solid var(--form-theme-color); 266 | color: var(--form-theme-color); 267 | font-weight: 600; 268 | outline: none; 269 | } 270 | 271 | .qfc-container input[type='radio']:after { 272 | width: 20px; 273 | height: 20px; 274 | border-radius: 100px; 275 | top: -2px; 276 | left: -1px; 277 | margin: -5px; 278 | position: relative; 279 | background-color: white; 280 | content: ''; 281 | display: inline-block; 282 | visibility: visible; 283 | border: 5px solid var(--input-bg-gray); 284 | } 285 | 286 | .qfc-container input[type='radio']:checked:after { 287 | width: 20px; 288 | height: 20px; 289 | border-radius: 100px; 290 | top: -2px; 291 | left: -1px; 292 | margin: -5px; 293 | position: relative; 294 | background-color: var(--form-theme-color); 295 | content: ''; 296 | display: inline-block; 297 | visibility: visible; 298 | border: 5px solid var(--input-bg-gray); 299 | } 300 | 301 | .qfc-container textarea { 302 | height: 10em; 303 | } 304 | 305 | .qfc-container select { 306 | margin-top: 5px; 307 | background: white; 308 | -webkit-appearance: none; 309 | -moz-appearance: none; 310 | background-position: right 50%; 311 | background-repeat: no-repeat; 312 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=); 313 | } 314 | 315 | .qfc-container button, 316 | input[type='button'], 317 | input[type='reset'], 318 | input[type='submit'] { 319 | font-family: inherit; 320 | line-height: 0; 321 | font-size: .8em; 322 | padding: 0; 323 | width: 86px; 324 | height: 36px; 325 | border: 0; 326 | cursor: pointer; 327 | background-color: var(--form-theme-color); 328 | color: white; 329 | -webkit-transition: all 0.3s; 330 | -moz-transition: all 0.3s; 331 | transition: all 0.3s; 332 | font-weight: 600; 333 | text-transform: uppercase; 334 | } 335 | 336 | .qfc-container select[multiple] { 337 | background: none; 338 | } 339 | 340 | .qfc-container button:hover, 341 | input[type='button']:hover, 342 | input[type='reset']:hover, 343 | input[type='submit']:hover { 344 | background: var(--button-hover); 345 | transition: all .3s; 346 | } 347 | 348 | @media screen and (max-width: 900px) { 349 | .qfc-container { 350 | width: 70%; 351 | } 352 | .qfc-container input, 353 | select { 354 | width: 100%; 355 | } 356 | } -------------------------------------------------------------------------------- /qfc-light.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Roboto'); 2 | @import url("https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"); 3 | body { 4 | --main-bg-color: white; 5 | background: var(--main-bg-color); 6 | } 7 | 8 | .qfc-container { 9 | --form-theme-color: #00bcd4; 10 | --form-bg-color: white; 11 | --input-text-color: black; 12 | --button-hover: #4e5050; 13 | --input-bg-gray: #E2E5E5; 14 | border: 7px solid var(--form-theme-color); 15 | /* border-top: 7px solid var(--form-theme-color); */ 16 | font-size: 1em; 17 | font-family: 'Roboto', sans-serif; 18 | background-color: var(--form-bg-color); 19 | padding: 35px; 20 | width: 700px; 21 | margin: 30px auto; 22 | margin-top: 30px; 23 | } 24 | 25 | .qfc-container ::-webkit-input-placeholder { 26 | /* Chrome/Opera/Safari */ 27 | color: var(--input-text-color); 28 | } 29 | 30 | .qfc-container ::-moz-placeholder { 31 | /* Firefox 19+ */ 32 | color: var(--input-text-color); 33 | } 34 | 35 | .qfc-container :-ms-input-placeholder { 36 | /* IE 10+ */ 37 | color: var(--input-text-color); 38 | } 39 | 40 | .qfc-container :-moz-placeholder { 41 | /* Firefox 18- */ 42 | color: var(--input-text-color); 43 | } 44 | 45 | .qfc-container input { 46 | width: 200px; 47 | display: block; 48 | border: none; 49 | padding: 12px !important; 50 | border-bottom: solid 1px var(--form-theme-color); 51 | -webkit-transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); 52 | transition: all 0.3s cubic-bezier(0.64, 0.09, 0.08, 1); 53 | background-repeat: no-repeat; 54 | color: var(--input-text-color); 55 | } 56 | 57 | .qfc-container input:focus, 58 | input:valid { 59 | box-shadow: none; 60 | outline: none; 61 | background-position: 0 0; 62 | } 63 | 64 | .qfc-container input::-webkit-input-placeholder { 65 | font-family: 'roboto', sans-serif; 66 | -webkit-transition: all 0.3s ease-in-out; 67 | transition: all 0.3s ease-in-out; 68 | } 69 | 70 | .qfc-container input:focus::-webkit-input-placeholder, 71 | input:valid::-webkit-input-placeholder { 72 | color: var(--form-theme-color); 73 | font-size: 11px; 74 | -webkit-transform: translateY(-20px); 75 | transform: translateY(-20px); 76 | visibility: visible !important; 77 | } 78 | 79 | .qfc-container h1 { 80 | font-size: 112px; 81 | font-weight: 300; 82 | letter-spacing: -5px; 83 | line-height: 128px; 84 | } 85 | 86 | .qfc-container h2 { 87 | font-size: 56px; 88 | line-height: 64px; 89 | } 90 | 91 | .qfc-container h3 { 92 | font-size: 45px; 93 | line-height: 64px; 94 | } 95 | 96 | .qfc-container h4 { 97 | font-size: 34px; 98 | line-height: 52px; 99 | } 100 | 101 | .qfc-container h5 { 102 | font-size: 24px; 103 | line-height: 44px; 104 | } 105 | 106 | .qfc-container h6 { 107 | font-size: 20px; 108 | font-weight: 600; 109 | line-height: 44px; 110 | } 111 | 112 | .qfc-container h1, 113 | h2, 114 | h3, 115 | h4, 116 | h5, 117 | h6 { 118 | text-decoration: none; 119 | position: relative; 120 | margin: 50px 0 0; 121 | font-weight: 400; 122 | } 123 | 124 | .qfc-container h1:not(.no-underline):after, 125 | .qfc-container h2:not(.no-underline):after, 126 | .qfc-container h3:not(.no-underline):after, 127 | .qfc-container h4:not(.no-underline):after, 128 | .qfc-container h5:not(.no-underline):after, 129 | .qfc-container h6:not(.no-underline):after { 130 | content: ''; 131 | position: relative; 132 | display: block; 133 | bottom: 0; 134 | margin-bottom: 31px; 135 | width: 100%; 136 | border: 3px solid var(--form-theme-color); 137 | } 138 | 139 | .qfc-container .no-underline+h1, 140 | .qfc-container .no-underline+h2, 141 | .qfc-container .no-underline+h3, 142 | .qfc-container .no-underline+h4, 143 | .qfc-container .no-underline+h5, 144 | .qfc-container .no-underline+h6 { 145 | margin-top: 0; 146 | } 147 | 148 | .qfc-container input[type="checkbox"] { 149 | margin-left: 0px; 150 | display: inline-block; 151 | position: relative; 152 | -webkit-appearance: none; 153 | height: 2em; 154 | width: 4em; 155 | border-radius: 1.5em; 156 | background-color: var(--input-bg-gray); 157 | border: none; 158 | background-clip: padding-box; 159 | color: #919FAF; 160 | vertical-align: middle; 161 | } 162 | 163 | .qfc-container input[type="checkbox"]::before { 164 | content: ""; 165 | position: absolute; 166 | left: 0; 167 | top: 0; 168 | bottom: 0; 169 | right: 50%; 170 | background-color: white; 171 | border-radius: 100%; 172 | border: 2px solid transparent; 173 | -webkit-transition: all 0.5s ease; 174 | transition: all 0.5s ease; 175 | background-clip: padding-box; 176 | z-index: 2; 177 | } 178 | 179 | .qfc-container input[type="checkbox"]::after { 180 | position: absolute; 181 | left: 0.675em; 182 | top: 0.35em; 183 | font-family: "Ionicons"; 184 | content: "\f122\f12a"; 185 | letter-spacing: 0.75em; 186 | z-index: 1; 187 | } 188 | 189 | .qfc-container label { 190 | font-weight: 400; 191 | } 192 | 193 | .qfc-container input[type="checkbox"]:focus, 194 | input[type="radio"]:focus { 195 | color: white; 196 | border: none; 197 | border-color: transparent; 198 | background-color: #919FAF; 199 | } 200 | 201 | .qfc-container input[type="checkbox"]:checked { 202 | color: white; 203 | background-color: var(--form-theme-color); 204 | border-color: transparent; 205 | } 206 | 207 | .qfc-container input[type="checkbox"]:checked::before { 208 | -webkit-transform: translateX(100%); 209 | transform: translateX(100%); 210 | } 211 | 212 | .qfc-container form { 213 | padding-top: 20px; 214 | } 215 | 216 | .qfc-container div { 217 | margin-top: 5px; 218 | margin-bottom: 15px; 219 | } 220 | 221 | .qfc-container input[type="radio"] { 222 | width: 30px; 223 | display: inline-block; 224 | } 225 | 226 | .qfc-container input, 227 | select { 228 | border: none; 229 | border-bottom: 1px solid var(--form-theme-color); 230 | color: var(--input-text-color); 231 | font-family: sans-serif; 232 | font-weight: 500; 233 | font-size: 1em; 234 | border-radius: 0; 235 | line-height: 22px; 236 | display: block; 237 | padding: 5px; 238 | width: 60%; 239 | -webkit-box-sizing: border-box; 240 | -moz-box-sizing: border-box; 241 | -ms-box-sizing: border-box; 242 | box-sizing: border-box; 243 | } 244 | 245 | .qfc-container textarea { 246 | border: none; 247 | border-bottom: 2px solid var(--form-theme-color); 248 | color: var(--input-text-color); 249 | font-weight: 500; 250 | font-size: 1em; 251 | border-radius: 0; 252 | line-height: 22px; 253 | display: block; 254 | padding: 5px; 255 | width: 100%; 256 | -webkit-box-sizing: border-box; 257 | -moz-box-sizing: border-box; 258 | -ms-box-sizing: border-box; 259 | box-sizing: border-box; 260 | } 261 | 262 | .qfc-container input:focus, 263 | textarea:focus, 264 | select:focus { 265 | border-bottom: 3px solid var(--form-theme-color); 266 | color: var(--form-theme-color); 267 | font-weight: 600; 268 | outline: none; 269 | } 270 | 271 | .qfc-container input[type='radio']:after { 272 | width: 20px; 273 | height: 20px; 274 | border-radius: 100px; 275 | top: -2px; 276 | left: -1px; 277 | margin: -5px; 278 | position: relative; 279 | background-color: white; 280 | content: ''; 281 | display: inline-block; 282 | visibility: visible; 283 | border: 5px solid var(--input-bg-gray); 284 | } 285 | 286 | .qfc-container input[type='radio']:checked:after { 287 | width: 20px; 288 | height: 20px; 289 | border-radius: 100px; 290 | top: -2px; 291 | left: -1px; 292 | margin: -5px; 293 | position: relative; 294 | background-color: var(--form-theme-color); 295 | content: ''; 296 | display: inline-block; 297 | visibility: visible; 298 | border: 5px solid var(--input-bg-gray); 299 | } 300 | 301 | .qfc-container textarea { 302 | height: 10em; 303 | } 304 | 305 | .qfc-container select { 306 | margin-top: 5px; 307 | background: white; 308 | -webkit-appearance: none; 309 | -moz-appearance: none; 310 | background-position: right 50%; 311 | background-repeat: no-repeat; 312 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=); 313 | } 314 | 315 | .qfc-container button, 316 | input[type='button'], 317 | input[type='reset'], 318 | input[type='submit'] { 319 | font-family: inherit; 320 | line-height: 0; 321 | font-size: .8em; 322 | padding: 0; 323 | width: 86px; 324 | height: 36px; 325 | border: 0; 326 | cursor: pointer; 327 | background-color: var(--form-theme-color); 328 | color: white; 329 | -webkit-transition: all 0.3s; 330 | -moz-transition: all 0.3s; 331 | transition: all 0.3s; 332 | font-weight: 600; 333 | text-transform: uppercase; 334 | } 335 | 336 | .qfc-container select[multiple] { 337 | background: none; 338 | } 339 | 340 | .qfc-container button:hover, 341 | input[type='button']:hover, 342 | input[type='reset']:hover, 343 | input[type='submit']:hover { 344 | background: var(--button-hover); 345 | transition: all .3s; 346 | } 347 | 348 | @media screen and (max-width: 900px) { 349 | .qfc-container { 350 | width: 70%; 351 | } 352 | .qfc-container input, 353 | select { 354 | width: 100%; 355 | } 356 | } -------------------------------------------------------------------------------- /resource/addClass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siwalikm/quick-form-css/cfc6ad034d650a088d66981ad77f419a0cc76b9d/resource/addClass.png -------------------------------------------------------------------------------- /resource/demoImg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siwalikm/quick-form-css/cfc6ad034d650a088d66981ad77f419a0cc76b9d/resource/demoImg.gif -------------------------------------------------------------------------------- /resource/themes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siwalikm/quick-form-css/cfc6ad034d650a088d66981ad77f419a0cc76b9d/resource/themes.jpg -------------------------------------------------------------------------------- /resource/transition.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siwalikm/quick-form-css/cfc6ad034d650a088d66981ad77f419a0cc76b9d/resource/transition.gif --------------------------------------------------------------------------------