Skip to content

Commit 59e351b

Browse files
committed
Remove unused CSS codes using PurifyCSS once more
Remove unused CSS codes using PurifyCSS npm install purify-css &&\ node -e 'require("purify-css")(["index.html","static/main.js"], ["static/main.css"],{output:"static/main.css"})' &&\ rm -rf node_modules package-lock.json Reference: commit 9661068 https://github.com/purifycss/purifycss
1 parent 77df8d1 commit 59e351b

File tree

1 file changed

+8
-284
lines changed

1 file changed

+8
-284
lines changed

static/main.css

Lines changed: 8 additions & 284 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import url("https://fonts.googleapis.com/css?family=Roboto:400,700");
22

3-
html,body,div,span,object,h1,h2,h3,h4,h5,h6,p,a,s,var,u,i,center,ul,li,form,label,footer,header {
3+
html,body,div,object,h1,h2,h3,h4,h5,h6,p,a,s,var,u,i,center,ul,li,footer,header {
44
margin: 0;
55
padding: 0;
66
border: 0;
@@ -25,18 +25,6 @@ body {
2525
-webkit-text-size-adjust: none;
2626
}
2727

28-
input::-moz-focus-inner {
29-
border: 0;
30-
padding: 0;
31-
}
32-
33-
input {
34-
-moz-appearance: none;
35-
-webkit-appearance: none;
36-
-ms-appearance: none;
37-
appearance: none;
38-
}
39-
4028
/* Basic */
4129

4230
@-ms-viewport {
@@ -265,7 +253,7 @@ body.is-preload #bg {
265253

266254
/* Type */
267255

268-
body,input {
256+
body {
269257
color: rgba(255, 255, 255, 0.75);
270258
font-family: "Roboto", sans-serif;
271259
font-size: 16pt;
@@ -275,31 +263,31 @@ body,input {
275263
}
276264

277265
@media screen and (max-width: 1680px) {
278-
body, input {
266+
body {
279267
font-size: 12pt;
280268
}
281269
}
282270

283271
@media screen and (max-width: 1280px) {
284-
body, input {
272+
body {
285273
font-size: 11pt;
286274
}
287275
}
288276

289277
@media screen and (max-width: 980px) {
290-
body, input {
278+
body {
291279
font-size: 12pt;
292280
}
293281
}
294282

295283
@media screen and (max-width: 736px) {
296-
body, input {
284+
body {
297285
font-size: 12pt;
298286
}
299287
}
300288

301289
@media screen and (max-width: 480px) {
302-
body, input {
290+
body {
303291
font-size: 12pt;
304292
}
305293
}
@@ -464,70 +452,6 @@ ul li {
464452

465453
/* Form */
466454

467-
form {
468-
margin: 0 0 2em 0;
469-
}
470-
471-
form .message {
472-
text-decoration: none;
473-
-moz-transition: opacity 0.2s ease-in-out, -moz-transform 0.2s ease-in-out;
474-
-webkit-transition: opacity 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
475-
-ms-transition: opacity 0.2s ease-in-out, -ms-transform 0.2s ease-in-out;
476-
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
477-
-moz-transform: scale(1.05);
478-
-webkit-transform: scale(1.05);
479-
-ms-transform: scale(1.05);
480-
transform: scale(1.05);
481-
height: 2.75em;
482-
line-height: 2.75em;
483-
opacity: 0;
484-
}
485-
486-
form .message:before {
487-
-moz-osx-font-smoothing: grayscale;
488-
-webkit-font-smoothing: antialiased;
489-
font-family: FontAwesome;
490-
font-style: normal;
491-
font-weight: normal;
492-
text-transform: none !important;
493-
}
494-
495-
form .message:before {
496-
margin-right: 0.5em;
497-
}
498-
499-
form .message.visible {
500-
-moz-transform: scale(1);
501-
-webkit-transform: scale(1);
502-
-ms-transform: scale(1);
503-
transform: scale(1);
504-
opacity: 1;
505-
}
506-
507-
form .message.success {
508-
color: #1cb495;
509-
}
510-
511-
form .message.success:before {
512-
content: '\f00c';
513-
}
514-
515-
form .message.failure {
516-
color: #ff2361;
517-
}
518-
519-
form .message.failure:before {
520-
content: '\f119';
521-
}
522-
523-
label {
524-
color: #fff;
525-
display: block;
526-
font-size: 0.9em;
527-
font-weight: 700;
528-
margin: 0 0 1em 0;
529-
}
530-
531455
@-moz-keyframes focus {
532456
0% {
533457
-moz-transform: scale(1);
@@ -620,117 +544,6 @@ label {
620544
}
621545
}
622546

623-
input[type="text"],input[type="password"],input[type="email"] {
624-
-moz-appearance: none;
625-
-webkit-appearance: none;
626-
-ms-appearance: none;
627-
appearance: none;
628-
-moz-transform: scale(1);
629-
-webkit-transform: scale(1);
630-
-ms-transform: scale(1);
631-
transform: scale(1);
632-
-moz-transition: border-color 0.2s ease, background-color 0.2s ease;
633-
-webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
634-
-ms-transition: border-color 0.2s ease, background-color 0.2s ease;
635-
transition: border-color 0.2s ease, background-color 0.2s ease;
636-
background-color: transparent;
637-
border-radius: 6px;
638-
border: none;
639-
border: solid 2px rgba(255, 255, 255, 0.35);
640-
color: inherit;
641-
display: block;
642-
outline: 0;
643-
padding: 0 1em;
644-
text-decoration: none;
645-
width: 100%;
646-
}
647-
648-
input[type="text"]:invalid,input[type="password"]:invalid,input[type="email"]:invalid {
649-
box-shadow: none;
650-
}
651-
652-
input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus {
653-
-moz-animation: focus 0.1s;
654-
-webkit-animation: focus 0.1s;
655-
-ms-animation: focus 0.1s;
656-
animation: focus 0.1s;
657-
background-color: rgba(255, 255, 255, 0.125);
658-
border-color: #1cb495;
659-
}
660-
661-
input[type="text"],input[type="password"],input[type="email"] {
662-
height: 2.75em;
663-
}
664-
665-
input[type="checkbox"],input[type="radio"] {
666-
-moz-appearance: none;
667-
-webkit-appearance: none;
668-
-ms-appearance: none;
669-
appearance: none;
670-
display: block;
671-
float: left;
672-
margin-right: -2em;
673-
opacity: 0;
674-
width: 1em;
675-
z-index: -1;
676-
}
677-
678-
input[type="checkbox"] + label,input[type="radio"] + label {
679-
text-decoration: none;
680-
color: rgba(255, 255, 255, 0.75);
681-
cursor: pointer;
682-
display: inline-block;
683-
font-size: 1em;
684-
font-weight: 400;
685-
padding-left: 2.4em;
686-
padding-right: 0.75em;
687-
position: relative;
688-
}
689-
690-
input[type="checkbox"] + label:before,input[type="radio"] + label:before {
691-
-moz-osx-font-smoothing: grayscale;
692-
-webkit-font-smoothing: antialiased;
693-
font-family: FontAwesome;
694-
font-style: normal;
695-
font-weight: normal;
696-
text-transform: none !important;
697-
}
698-
699-
input[type="checkbox"] + label:before,input[type="radio"] + label:before {
700-
background: rgba(255, 255, 255, 0.125);
701-
border-radius: 6px;
702-
border: solid 2px rgba(255, 255, 255, 0.35);
703-
content: '';
704-
display: inline-block;
705-
height: 1.65em;
706-
left: 0;
707-
line-height: 1.58125em;
708-
position: absolute;
709-
text-align: center;
710-
top: 0;
711-
width: 1.65em;
712-
}
713-
714-
input[type="checkbox"]:checked + label:before,input[type="radio"]:checked + label:before {
715-
background: #1cb495;
716-
border-color: #1cb495;
717-
color: #ffffff;
718-
content: '\f00c';
719-
}
720-
721-
input[type="checkbox"]:focus + label:before,input[type="radio"]:focus + label:before {
722-
border-color: #1cb495;
723-
box-shadow: 0 0 0 2px #1cb495;
724-
}
725-
726-
input[type="checkbox"] + label:before {
727-
border-radius: 6px;
728-
}
729-
730-
input[type="radio"] + label:before {
731-
border-radius: 100%;
732-
}
733-
734547
::-webkit-input-placeholder {
735548
color: rgba(255, 255, 255, 0.5) !important;
736549
opacity: 1.0;
@@ -753,48 +566,6 @@ input[type="radio"] + label:before {
753566

754567
/* Button */
755568

756-
input[type="submit"],input[type="reset"],input[type="button"] {
757-
-moz-appearance: none;
758-
-webkit-appearance: none;
759-
-ms-appearance: none;
760-
appearance: none;
761-
-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, opacity 0.2s ease-in-out;
762-
-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, opacity 0.2s ease-in-out;
763-
-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, opacity 0.2s ease-in-out;
764-
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, opacity 0.2s ease-in-out;
765-
background-color: #1cb495;
766-
border-radius: 6px;
767-
border: 0;
768-
color: #ffffff !important;
769-
cursor: pointer;
770-
display: inline-block;
771-
font-weight: 700;
772-
height: 2.75em;
773-
line-height: 2.75em;
774-
padding: 0 1.125em;
775-
text-align: center;
776-
text-decoration: none;
777-
white-space: nowrap;
778-
}
779-
780-
input[type="submit"]:hover,input[type="reset"]:hover,input[type="button"]:hover {
781-
background-color: #1fcaa7;
782-
}
783-
784-
input[type="submit"]:active,input[type="reset"]:active,input[type="button"]:active {
785-
background-color: #199e83;
786-
}
787-
788-
input[type="submit"].disabled,input[type="submit"]:disabled,input[type="reset"].disabled,input[type="reset"]:disabled,input[type="button"].disabled,input[type="button"]:disabled {
789-
opacity: 0.5;
790-
}
791-
792-
@media screen and (max-width: 480px) {
793-
input[type="submit"], input[type="reset"], input[type="button"] {
794-
padding: 0;
795-
}
796-
}
797-
798569
/* Header */
799570

800571
header h1 {
@@ -829,53 +600,6 @@ header a {
829600

830601
/* Signup Form */
831602

832-
#signup-form {
833-
display: -moz-flex;
834-
display: -webkit-flex;
835-
display: -ms-flex;
836-
display: flex;
837-
position: relative;
838-
}
839-
840-
#signup-form input[type="text"],#signup-form input[type="password"],#signup-form input[type="email"] {
841-
width: 18em;
842-
}
843-
844-
#signup-form > * {
845-
margin: 0 0 0 1em;
846-
}
847-
848-
#signup-form > :first-child {
849-
margin: 0 0 0 0;
850-
}
851-
852-
@media screen and (max-width: 480px) {
853-
#signup-form {
854-
-moz-flex-direction: column;
855-
-webkit-flex-direction: column;
856-
-ms-flex-direction: column;
857-
flex-direction: column;
858-
}
859-
860-
#signup-form input[type="type"], #signup-form input[type="password"], #signup-form input[type="email"] {
861-
width: 100%;
862-
}
863-
864-
#signup-form > * {
865-
margin: 1.25em 0 0 0;
866-
}
867-
868-
#signup-form .message {
869-
bottom: -1.5em;
870-
font-size: 0.9em;
871-
height: 1em;
872-
left: 0;
873-
line-height: inherit;
874-
margin-top: 0;
875-
position: absolute;
876-
}
877-
}
878-
879603
/* Footer */
880604

881605
footer {
@@ -938,4 +662,4 @@ footer > :last-child {
938662
margin: 1em 0 0 0;
939663
position: relative;
940664
}
941-
}
665+
}

0 commit comments

Comments
 (0)