mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-10-28 23:53:08 +00:00
GUAC-1052: Migrate to flexbox layout for client view.
This commit is contained in:
@@ -38,21 +38,71 @@ body.client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.client-view {
|
.client-view {
|
||||||
display: table;
|
|
||||||
|
/* IE10 */
|
||||||
|
display: -ms-flexbox;
|
||||||
|
-ms-flex-align: stretch;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
-ms-flex-pack: end;
|
||||||
|
|
||||||
|
/* Ancient Mozilla */
|
||||||
|
display: -moz-box;
|
||||||
|
-moz-box-align: stretch;
|
||||||
|
-moz-box-orient: vertical;
|
||||||
|
-moz-box-pack: end;
|
||||||
|
|
||||||
|
/* Ancient WebKit */
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-align: stretch;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-box-pack: end;
|
||||||
|
|
||||||
|
/* Old WebKit */
|
||||||
|
display: -webkit-flex;
|
||||||
|
-webkit-align-items: stretch;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
-webkit-flex-pack: end;
|
||||||
|
|
||||||
|
/* W3C */
|
||||||
|
display: flex;
|
||||||
|
align-items: stretch;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-pack: end;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.client-view .client-body {
|
.client-view .client-body {
|
||||||
display: table-cell;
|
-ms-flex: 1 1 auto;
|
||||||
width: 100%;
|
-moz-box-flex: 1;
|
||||||
height: 100%;
|
-webkit-box-flex: 1;
|
||||||
|
-webkit-flex: 1 1 auto;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.client-view .client-bottom {
|
.client-view .client-bottom {
|
||||||
display: table-row;
|
-ms-flex: 0 0 auto;
|
||||||
height: 0;
|
-moz-box-flex: 0;
|
||||||
|
-webkit-box-flex: 0;
|
||||||
|
-webkit-flex: 0 0 auto;
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.client-view .client-body .main {
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -120,11 +120,11 @@
|
|||||||
|
|
||||||
.menu-header > h2 {
|
.menu-header > h2 {
|
||||||
|
|
||||||
-ms-flex: 1 0 auto;
|
-ms-flex: 1 1 auto;
|
||||||
-moz-box-flex: 1;
|
-moz-box-flex: 1;
|
||||||
-webkit-box-flex: 1;
|
-webkit-box-flex: 1;
|
||||||
-webkit-flex: 1 0 auto;
|
-webkit-flex: 1 1 auto;
|
||||||
flex: 1 0 auto;
|
flex: 1 1 auto;
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -136,11 +136,11 @@
|
|||||||
|
|
||||||
.menu-body {
|
.menu-body {
|
||||||
|
|
||||||
-ms-flex: 0 1 auto;
|
-ms-flex: 1 1 auto;
|
||||||
-moz-box-flex: 1;
|
-moz-box-flex: 1;
|
||||||
-webkit-box-flex: 1;
|
-webkit-box-flex: 1;
|
||||||
-webkit-flex: 0 1 auto;
|
-webkit-flex: 1 1 auto;
|
||||||
flex: 0 1 auto;
|
flex: 1 1 auto;
|
||||||
|
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user