]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adds multiple media queries for filename.
authorraghunayyar <me@iraghu.com>
Sat, 7 Jun 2014 08:53:49 +0000 (14:23 +0530)
committerraghunayyar <me@iraghu.com>
Sat, 7 Jun 2014 08:53:49 +0000 (14:23 +0530)
apps/files/css/files.css

index 7a0b7a89e891afee050bb994c6818b7c5c9d0942..4c57dff77f9db27e6de70889655cfb9b49867227 100644 (file)
@@ -286,12 +286,48 @@ table td.filename .nametext {
 }
 
 table td.filename .nametext span:not(.extension) {
-       max-width: 300px;
        text-overflow: ellipsis;
        overflow: hidden;
        position: relative;
        display: inline-block;
 }
+
+@media only screen and (min-width: 1366px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 650px;
+       }
+}
+
+@media only screen and (min-width: 1200px) and (max-width: 1366px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 450px;
+       }
+}
+
+@media only screen and (min-width: 1000px) and (max-width: 1200px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 270px;
+       }
+}
+
+@media only screen and (min-width: 900px) and (max-width: 1000px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 210px;
+       }
+}
+
+@media only screen and (min-width: 768px) and (max-width: 900px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 200px;
+       }
+}
+
+@media only screen and (max-width: 768px) {
+       table td.filename .nametext span:not(.extension) {
+               max-width: 400px;
+       }
+}
+
 table td.filename .uploadtext { font-weight:normal; margin-left:8px; }
 table td.filename form { font-size:14px; margin-left:48px; margin-right:48px; }