-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfile-upload.css
99 lines (95 loc) · 2.07 KB
/
file-upload.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import "compass/css3";
@import url("https://fonts.googleapis.com/css?family=Lato");
$background: #e74c3c;
$file-upload-color: #c0392b;
$file-upload-size: 300px;
* {
margin: 0;
padding: 0;
font-family: Lato, Arial;
@include box-sizing(border-box);
}
body {
color: #fff;
padding: 55px 25px;
background-color: $background;
}
h1 {
font-weight: normal;
font-size: 40px;
font-weight: normal;
text-transform: uppercase;
span {
font-size: 13px;
display: block;
padding-left: 4px;
}
}
p {
margin-top: 200px;
a {
text-transform: uppercase;
text-decoration: none;
display: inline-block;
color: #fff;
padding: 5px 10px;
margin: 0 5px;
background-color: darken($file-upload-color, 2);
@include transition(all 0.2s ease-in);
&:hover {
background-color: darken($file-upload-color, 5);
}
}
}
.custom-file-upload-hidden {
display: none;
visibility: hidden;
position: absolute;
left: -9999px;
}
.custom-file-upload {
display: block;
width: auto;
font-size: 16px;
margin-top: 30px;
//border: 1px solid #ccc;
label {
display: block;
margin-bottom: 5px;
}
}
.file-upload-wrapper {
position: relative;
margin-bottom: 5px;
//border: 1px solid #ccc;
}
.file-upload-input {
width: $file-upload-size;
color: #fff;
font-size: 16px;
padding: 11px 17px;
border: none;
background-color: $file-upload-color;
@include transition(all 0.2s ease-in);
float: left; /* IE 9 Fix */
&:hover, &:focus {
background-color: darken($file-upload-color, 5);
outline: none;
}
}
.file-upload-button {
cursor: pointer;
display: inline-block;
color: #fff;
font-size: 16px;
text-transform: uppercase;
padding: 11px 20px;
border: none;
margin-left: -1px;
background-color: darken($file-upload-color, 10);
float: left; /* IE 9 Fix */
@include transition(all 0.2s ease-in);
&:hover {
background-color: darken($file-upload-color, 20);
}
}