image button + design fix
parent
b6f692459b
commit
02fea78b97
@ -0,0 +1,3 @@
|
||||
.card {
|
||||
padding: 5%;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
.card {
|
||||
padding: 5%;
|
||||
}
|
@ -1,3 +1,80 @@
|
||||
.container {
|
||||
padding-top: 10%;
|
||||
}
|
||||
|
||||
.inputfile {
|
||||
width: 0.1px;
|
||||
height: 0.1px;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.inputfile + label {
|
||||
max-width: 80%;
|
||||
font-size: 1.25rem;
|
||||
/* 20px */
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
padding: 0.625rem 1.25rem;
|
||||
/* 10px 20px */
|
||||
}
|
||||
|
||||
.inputfile + label * {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.no-js .inputfile + label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.inputfile:focus + label,
|
||||
.inputfile.has-focus + label {
|
||||
outline: 1px dotted #000;
|
||||
outline: -webkit-focus-ring-color auto 5px;
|
||||
}
|
||||
|
||||
.inputfile + label * {
|
||||
/* pointer-events: none; */
|
||||
/* in case of FastClick lib use */
|
||||
}
|
||||
|
||||
.inputfile + label svg {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: middle;
|
||||
fill: currentColor;
|
||||
margin-top: -0.25em;
|
||||
/* 4px */
|
||||
margin-right: 0.25em;
|
||||
/* 4px */
|
||||
}
|
||||
|
||||
|
||||
/* style 1 */
|
||||
|
||||
.inputfile-1 + label {
|
||||
color: #f1e5e6;
|
||||
background-color: #d3394c;
|
||||
}
|
||||
|
||||
.inputfile-1:focus + label,
|
||||
.inputfile-1.has-focus + label,
|
||||
.inputfile-1 + label:hover {
|
||||
background-color: #722040;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,3 +1,71 @@
|
||||
.card {
|
||||
padding: 5%;
|
||||
}
|
||||
|
||||
.inputfile {
|
||||
width: 0.1px;
|
||||
height: 0.1px;
|
||||
opacity: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.inputfile + label {
|
||||
max-width: 50%;
|
||||
font-size: 1rem;
|
||||
/* 20px */
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
padding: 0.625rem 1.25rem;
|
||||
/* 10px 20px */
|
||||
}
|
||||
|
||||
.inputfile + label * {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.no-js .inputfile + label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.inputfile:focus + label,
|
||||
.inputfile.has-focus + label {
|
||||
outline: 1px dotted #000;
|
||||
outline: -webkit-focus-ring-color auto 5px;
|
||||
}
|
||||
|
||||
.inputfile + label * {
|
||||
/* pointer-events: none; */
|
||||
/* in case of FastClick lib use */
|
||||
}
|
||||
|
||||
.inputfile + label svg {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
vertical-align: middle;
|
||||
fill: currentColor;
|
||||
margin-top: -0.25em;
|
||||
/* 4px */
|
||||
margin-right: 0.25em;
|
||||
/* 4px */
|
||||
}
|
||||
|
||||
|
||||
/* style 1 */
|
||||
|
||||
.inputfile-1 + label {
|
||||
color: #f1e5e6;
|
||||
background-color: #d3394c;
|
||||
}
|
||||
|
||||
.inputfile-1:focus + label,
|
||||
.inputfile-1.has-focus + label,
|
||||
.inputfile-1 + label:hover {
|
||||
background-color: #722040;
|
||||
}
|
||||
|
Loading…
Reference in New Issue