diff --git a/css/main.css b/css/main.css new file mode 100644 index 00000000..0e62e325 --- /dev/null +++ b/css/main.css @@ -0,0 +1,131 @@ +/* Search control */ +.form-control.search { + margin: 0 auto; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: 1rem center; + background-size: 24px auto; + padding-left: 3rem; + padding-right: 2rem; + border-radius: 2rem; +} +.close-search { + width: 18px; + height: 24px; + display: block; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: center center; + background-size: 100% auto; + float: right; + margin-top: -36px; + margin-right: 20px; + cursor: pointer; +} +.close-search:hover { + background-image: url("data:image/svg+xml;utf8,"); +} + +/* Icons list */ +.icons { + margin-right: -10px; + margin-left: -10px; +} +.col-6, +.col-sm-4, +.col-lg-3, +.col-xl-2 { + padding-right: 10px; + padding-left: 10px; + margin-bottom: 20px; +} +.icon a, +.icon span.placeholder { + border-radius: .3rem; + -webkit-transition: all .1s ease-in-out; + -moz-transition: all .1s ease-in-out; + transition: all .1s ease-in-out; +} +.icon a img { + width: 24px; + height: auto; +} + +/* Icons list: Hover state */ +.icon a:hover { + background-color: #FFF !important; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), + 0 4px 16px rgba(0, 0, 0, 0.1); + /* transform: scale(1.1); */ + text-decoration: none; +} +.icon a:hover::after { + content: " "; + width: 18px; + height: 24px; + display: block; + float: right; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: center center; + background-size: 100% auto; +} + +/* Icons list: Placeholder */ +.placeholder { + animation-duration: 2s; + animation-fill-mode: forwards; + animation-iteration-count: infinite; + animation-name: backgroundLoading; + animation-timing-function: linear; + background: linear-gradient(to right, #f8f9fa 8%, #ffffff 18%, #f8f9fa 33%); + background-size: 500px 500px; +} +@keyframes backgroundLoading { + 0%{ + background-position: -500px 0 + } + 100%{ + background-position: 500px 0 + } +} + +/* Modal */ +.modal-backdrop.show { + opacity: .66; +} +.modal-body { + padding: 0; + border-radius: .3rem !important; +} + +/* Infos icon */ +.info-icon { + width: 100%; +} +.info-icon td, +.info-icon th { + padding: 1rem; +} +.info-icon thead th { + border-top: none; + border-bottom-width: 1px; +} +.info-icon .variant-white { + background-color: #343a40 !important; +} +.info-icon .format-svg img, +.info-icon .format-128 img { + width: 100%; + height: auto; +} +.info-icon .format-svg img { + max-width: 48px; +} +.info-icon .format-128 img { + max-width: 128px; +} +.info-icon .format-32-2x img { + width: 32px; + height: auto; +} diff --git a/css/main.min.css b/css/main.min.css new file mode 100644 index 00000000..fd81ca85 --- /dev/null +++ b/css/main.min.css @@ -0,0 +1 @@ +.form-control.search{margin:0 auto;background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:1rem center;background-size:24px auto;padding-left:3rem;padding-right:2rem;border-radius:2rem}.close-search{width:18px;height:24px;display:block;background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:center center;background-size:100% auto;float:right;margin-top:-36px;margin-right:20px;cursor:pointer}.close-search:hover{background-image:url("data:image/svg+xml;utf8,")}.icons{margin-right:-10px;margin-left:-10px}.col-6,.col-lg-3,.col-sm-4,.col-xl-2{padding-right:10px;padding-left:10px;margin-bottom:20px}.icon a,.icon span.placeholder{border-radius:.3rem;-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.icon a img{width:24px;height:auto}.icon a:hover{background-color:#fff!important;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 4px 16px rgba(0,0,0,.1);text-decoration:none}.icon a:hover::after{content:" ";width:18px;height:24px;display:block;float:right;background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:center center;background-size:100% auto}.placeholder{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:backgroundLoading;animation-timing-function:linear;background:linear-gradient(to right,#f8f9fa 8%,#fff 18%,#f8f9fa 33%);background-size:500px 500px}@keyframes backgroundLoading{0%{background-position:-500px 0}100%{background-position:500px 0}}.modal-backdrop.show{opacity:.66}.modal-body{padding:0;border-radius:.3rem!important}.info-icon{width:100%}.info-icon td,.info-icon th{padding:1rem}.info-icon thead th{border-top:none;border-bottom-width:1px}.info-icon .variant-white{background-color:#343a40!important}.info-icon .format-128 img,.info-icon .format-svg img{width:100%;height:auto}.info-icon .format-svg img{max-width:48px}.info-icon .format-128 img{max-width:128px}.info-icon .format-32-2x img{width:32px;height:auto} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..382d642d --- /dev/null +++ b/index.html @@ -0,0 +1,84 @@ + +
+ + + + +A set of crypto and fiat currencies icons. Completely free.
++ Learn more + Download +
+" + icon + " | ";
+ while (variants[j]) {
+
+ var formatCss = formats[i].replace("@", "-");
+ infos += "" + variants[j] + " | "; + j++; + + } + + j = 0; + infos += "
---|---|
" + formats[i] + " | "; + + // File extension + if (formats[i] == "svg") { + var extension = ".svg" ; + } + else if (formats[i] == "32@2x") { + var extension = "@2x.png" ; + } + else { + var extension = ".png" ; + } + + // Construct icons cells + while (variants[j]) { + + infos += ""; + infos += ""; + infos += " | "; + j++; + + } + + j = 0; + i++; + infos += "
'+n+" | ";c[l];){s=a[i].replace("@","-");r+=''+c[l]+" | ",l++}for(l=0,r+="
---|---|
'+a[i]+" | ","svg"==a[i])d=".svg";else if("32@2x"==a[i])d="@2x.png";else var d=".png";for(;c[l];)r+='',r+='',r+=" | ",l++;l=0,i++,r+="