mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-12 16:07:42 +00:00
GUAC-1172: Move file transfer manager to corner of client display.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C) 2015 Glyptodon LLC
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#file-transfer-dialog {
|
||||
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
|
||||
font-size: 0.8em;
|
||||
padding: 0.5em;
|
||||
|
||||
width: 4in;
|
||||
max-width: 100%;
|
||||
|
||||
}
|
||||
|
||||
#file-transfer-dialog .transfer-manager {
|
||||
border: 1px solid rgba(0, 0, 0, 0.125);
|
||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.125);
|
||||
}
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Glyptodon LLC
|
||||
* Copyright (C) 2015 Glyptodon LLC
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -20,22 +20,27 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
.transfer-manager .action-buttons {
|
||||
text-align: center;
|
||||
.transfer-manager {
|
||||
background: white;
|
||||
}
|
||||
|
||||
.transfer-manager .no-transfers {
|
||||
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
text-shadow: -1px -1px rgba(0, 0, 0, 0.5);
|
||||
opacity: 0.5;
|
||||
|
||||
font-size: 2em;
|
||||
font-weight: bolder;
|
||||
text-align: center;
|
||||
|
||||
.transfer-manager .header h2 {
|
||||
font-size: 1em;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.transfer-manager .transfer {
|
||||
margin: 1em;
|
||||
.transfer-manager .header {
|
||||
margin: 0;
|
||||
-ms-flex-align: center;
|
||||
-moz-box-align: center;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.transfer-manager .transfers {
|
||||
display: table;
|
||||
padding: 0.25em;
|
||||
width: 100%;
|
||||
}
|
||||
|
@@ -21,25 +21,29 @@
|
||||
*/
|
||||
|
||||
.transfer {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.transfer .transfer-status {
|
||||
display: table-cell;
|
||||
padding: 0.25em;
|
||||
position: relative;
|
||||
padding: 0.5em;
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
.transfer .text {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
padding: 0.25em
|
||||
}
|
||||
|
||||
.transfer .filename {
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
margin-bottom: 0.5em;
|
||||
position: relative;
|
||||
font-family: monospace;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.transfer .text {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
margin-top: 0.5em;
|
||||
padding: 0.125em;
|
||||
}
|
||||
|
||||
@keyframes transfer-progress {
|
||||
@@ -55,11 +59,8 @@
|
||||
.transfer .progress {
|
||||
|
||||
width: 100%;
|
||||
background: #C2C2C2;
|
||||
padding: 0.25em;
|
||||
|
||||
border: 1px solid gray;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -70,6 +71,7 @@
|
||||
|
||||
.transfer.in-progress .progress {
|
||||
|
||||
background-color: #EEE;
|
||||
background-image: url('images/progress.png');
|
||||
|
||||
background-size: 16px 16px;
|
||||
@@ -90,6 +92,7 @@
|
||||
}
|
||||
|
||||
.transfer .progress .bar {
|
||||
display: none;
|
||||
background: #A3D655;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -98,32 +101,35 @@
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.savable.transfer {
|
||||
.transfer.in-progress .progress .bar {
|
||||
display: initial;
|
||||
}
|
||||
|
||||
.transfer.savable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.savable.transfer:hover .progress {
|
||||
border-color: black;
|
||||
}
|
||||
|
||||
.savable.transfer .filename {
|
||||
.transfer.savable .filename {
|
||||
color: blue;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.error.transfer {
|
||||
.transfer.error {
|
||||
background: #FDD;
|
||||
}
|
||||
|
||||
.error.transfer .progress {
|
||||
border-color: rgba(0, 0, 0, 0.125);
|
||||
}
|
||||
|
||||
.error.transfer .text,
|
||||
.error.transfer .progress .bar {
|
||||
.transfer.error .text,
|
||||
.transfer.error .progress .bar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
margin-bottom: 0;
|
||||
.transfer .error-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.transfer.error .error-text {
|
||||
display: block;
|
||||
margin: 0;
|
||||
margin-top: 0.5em;
|
||||
width: 100%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user