vendor/assets/javascripts/webshims/shims/styles/scss/shim.scss in webshims-rails-1.14.3 vs vendor/assets/javascripts/webshims/shims/styles/scss/shim.scss in webshims-rails-1.14.4
- old
+ new
@@ -531,10 +531,11 @@
margin: 0;
padding: 0;
overflow: hidden;
position: relative;
clear: both;
+ font-family: sans-serif;
p {
margin: 2px 0 3px;
padding: 0;
color: #a94442;
@@ -618,13 +619,12 @@
outline: 1px dotted #aaa;
outline-offset: -1px;
}
.ws-custom-file {
- @extend %clearfix;
position: relative;
- zoom: 1;
+ overflow: hidden;
> button,
> input {
box-sizing: border-box;
cursor: pointer;
@@ -689,27 +689,49 @@
border-color: #bbb;
background: #eee;
color: #999;
}
+ > input[type="file"],
+ .ws-coverfile {
+ position: absolute;
+ top: -1%;
+ left: -3%;
+ bottom: -1%;
+ right: -1%;
+ height: 102%;
+ width: 104%;
+ z-index: 9;
+ padding: 0;
+ margin: 0;
+ border: 0px none;
+ color: transparent;
+ background: transparent;
+ }
> input[type="file"] {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- height: 100%;
- width: 100%;
filter: alpha(opacity=0);
opacity: 0.00001;
- z-index: 9;
&[disabled] {
cursor: default;
cursor: not-allowed;
}
}
+ .ws-coverfile {
+ background: url(transparent.png);
+ z-index: 10;
+ cursor: pointer;
+
+ [readonly] + & {
+ cursor: default;
+ }
+ [disabled] + & {
+ cursor: default;
+ cursor: not-allowed;
+ }
+ }
+
> .moxie-shim {
z-index: 20;
}
}