Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
feat(ui-updates): ensure important gallery styles cannot be accidenta…
Browse files Browse the repository at this point in the history
…lly override

...by bootstrap or fineuploader-new.css
#1297
  • Loading branch information
rnicholus committed Mar 13, 2015
1 parent 7af5ea7 commit 42eb2dd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
24 changes: 18 additions & 6 deletions client/fineuploader-gallery.css
Expand Up @@ -8,6 +8,10 @@
.qq-gallery .qq-btn
{
float: right;
border: none;
padding: 0;
margin: 0;
box-shadow: none;
}

/* Upload Button
Expand Down Expand Up @@ -97,6 +101,7 @@
max-height: 450px;
overflow-y: auto;
clear: both;
box-shadow: none;
}


Expand Down Expand Up @@ -129,6 +134,12 @@
.qq-gallery .qq-upload-continue {
display: inline;
}
.qq-gallery .qq-upload-retry:hover,
.qq-gallery .qq-upload-delete:hover,
.qq-gallery .qq-upload-pause:hover,
.qq-gallery .qq-upload-continue:hover {
background-color: transparent;
}
.qq-gallery .qq-upload-delete,
.qq-gallery .qq-upload-pause,
.qq-gallery .qq-upload-continue,
Expand All @@ -144,12 +155,6 @@
font-size: 12px;
padding: 0;
}
.qq-gallery ,qq-upload-delete:hover,
.qq-gallery .qq-upload-pause:hover,
.qq-gallery .qq-upload-continue:hover {
text-decoration: underline;
}

/* to ensure consistent size of tiles - only display status text before auto-retry or after failure */
.qq-gallery .qq-upload-status-text {
color: #333333;
Expand Down Expand Up @@ -185,6 +190,11 @@
position: absolute;
right: -5px;
top: -6px;
margin: 0;
line-height: 17px;
}
.qq-gallery .qq-upload-cancel:hover {
background-color: #525252;
}
.qq-gallery .qq-upload-retry {
cursor: pointer;
Expand Down Expand Up @@ -223,6 +233,7 @@
display: block;
margin-right: 0;
margin-bottom: 3px;
width: auto;

/* to ensure consistent size of tiles - constrain text to single line */
text-overflow: ellipsis;
Expand Down Expand Up @@ -299,6 +310,7 @@
font-size: 11px;
color: #929292;
margin-bottom: 3px;
margin-right: 0;
display: inline-block;
}

Expand Down
2 changes: 1 addition & 1 deletion client/html/templates/gallery.html
Expand Up @@ -47,7 +47,7 @@
<div class="qq-file-info">
<div class="qq-file-name">
<span class="qq-upload-file-selector qq-upload-file"></span>
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
<span class="qq-edit-filename-icon-selector qq-btn qq-edit-filename-icon" aria-label="Edit filename"></span>
</div>
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
<span class="qq-upload-size-selector qq-upload-size"></span>
Expand Down
6 changes: 3 additions & 3 deletions test/dev/index.html
Expand Up @@ -36,7 +36,7 @@
<div class="qq-file-info">
<div class="qq-file-name">
<span class="qq-upload-file-selector qq-upload-file"></span>
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
<span class="qq-edit-filename-icon-selector qq-btn qq-edit-filename-icon" aria-label="Edit filename"></span>
</div>
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
<span class="qq-upload-size-selector qq-upload-size"></span>
Expand Down Expand Up @@ -202,9 +202,9 @@
<title>Fine Uploader Development</title>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!--<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>-->
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="../../client/fineuploader-gallery.css" rel="stylesheet" type="text/css"/>
<!--<link href="../../client/fineuploader-new.css" rel="stylesheet" type="text/css"/>-->
<link href="../../client/fineuploader-new.css" rel="stylesheet" type="text/css"/>
<!--<link href="../../client/fineuploader.css" rel="stylesheet" type="text/css"/>-->
<link href="styles.css" rel="stylesheet" type="text/css"/>
<script src="../../_build/all.fine-uploader.js"></script>
Expand Down

0 comments on commit 42eb2dd

Please sign in to comment.