openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e4752a79a00d42514887c856e6471252e8564629
parent 8bbb3ba2b9ed87fc5a51cbb088a9b9e20b7ab873
Author: Jan Dankert <devnull@localhost>
Date:   Sat,  7 Jul 2018 23:26:10 +0200

Overflow-Einstellung für die scrollbaren Bereiche setzen.

Diffstat:
modules/cms-ui/themes/default/style/openrat-base.css | 19+++++++++++++------
modules/cms-ui/themes/default/style/openrat-base.less | 16++++++++++++----
modules/cms-ui/themes/default/style/openrat-base.min.css | 4++--
3 files changed, 27 insertions(+), 12 deletions(-)

diff --git a/modules/cms-ui/themes/default/style/openrat-base.css b/modules/cms-ui/themes/default/style/openrat-base.css @@ -10,7 +10,7 @@ } /* Use Transition effects for all elements. */ * { - transition: all ease 0.5s; + transition: width ease 0.5s; } div#workbench { width: 100%; @@ -20,15 +20,18 @@ div#workbench { /* vertikale Flex-Box zwischen Header und Hauptbereich */ } div#workbench > header { - height: 4rem; - background-color: #2fff99; + height: 3rem; } div#workbench > div { - background-color: #ff5772; /* Horizontale Flexbox */ display: flex; flex: 1; flex-direction: row; + /* + https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox + Whenever you've got an element with overflow: [hidden|scroll|auto] inside of a flex item, you need to give its ancestor flex item min-width:0 (in a horizontal flex container) or min-height:0 (in a vertical flex container), to disable this min-sizing behavior, or else the flex item will refuse to shrink smaller than the child's min-content size. + */ + min-height: 0; } div#workbench > div > main { flex: 3; @@ -41,4 +44,8 @@ div#workbench > div > aside { xwidth: 10rem; flex: 1; } -/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22openrat-base.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%3BAACA%3BAAAG%3BAAAU%3BCACX%3B%3B%3BAAIF%3BCACE%3B%3B%3BAAIF%3BCACE%2CyBAAA%3B%3BAAGF%2CGAAG%3BCACD%3BCACA%3BCACA%3BCACA%3B%3B%3BAAJF%2CGAAG%2CUAUC%3BCACA%3BCACA%3B%3BAAZJ%2CGAAG%2CUAcC%3BCACA%3B%3BCAGA%3BCACA%3BCACA%3B%3BAApBJ%2CGAAG%2CUAcC%2CMAQE%3BCACA%3B%3BAAvBN%2CGAAG%2CUAcC%2CMAWE%3BCACA%3BCACA%3B%3BAA3BN%2CGAAG%2CUAcC%2CMAeE%3BCACA%3BCACA%22%7D */- \ No newline at end of file +div#workbench > div > * { + overflow-y: auto; + overflow-x: hidden; +} +/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22openrat-base.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%3BAACA%3BAAAG%3BAAAU%3BCACX%3B%3B%3BAAIF%3BCACE%3B%3B%3BAAIF%3BCACE%2C2BAAA%3B%3BAAGF%2CGAAG%3BCACD%3BCACA%3BCACA%3BCACA%3B%3B%3BAAJF%2CGAAG%2CUAUC%3BCACA%3B%3BAAXJ%2CGAAG%2CUAaC%3B%3BCAGA%3BCACA%3BCACA%3B%3B%3B%3B%3BCAMA%3B%3BAAxBJ%2CGAAG%2CUAaC%2CMAaE%3BCACA%3B%3BAA3BN%2CGAAG%2CUAaC%2CMAgBE%3BCACA%3BCACA%3B%3BAA%5C%2FBN%2CGAAG%2CUAaC%2CMAoBE%3BCACA%3BCACA%3B%3BAAnCN%2CGAAG%2CUAaC%2CMAwBE%3BCACA%3BCACA%22%7D */+ \ No newline at end of file diff --git a/modules/cms-ui/themes/default/style/openrat-base.less b/modules/cms-ui/themes/default/style/openrat-base.less @@ -10,7 +10,7 @@ /* Use Transition effects for all elements. */ * { - transition: all ease 0.5s; + transition: width ease 0.5s; } div#workbench { @@ -24,17 +24,21 @@ div#workbench { } > header { - height: 4rem; - background-color: #2fff99; + height: 3rem; } > div { - background-color: #ff5772; /* Horizontale Flexbox */ display: flex; flex: 1; flex-direction: row; + /* + https://stackoverflow.com/questions/28636832/firefox-overflow-y-not-working-with-nested-flexbox + Whenever you've got an element with overflow: [hidden|scroll|auto] inside of a flex item, you need to give its ancestor flex item min-width:0 (in a horizontal flex container) or min-height:0 (in a vertical flex container), to disable this min-sizing behavior, or else the flex item will refuse to shrink smaller than the child's min-content size. + */ + min-height: 0; + > main { flex: 3; } @@ -46,6 +50,10 @@ div#workbench { xwidth: 10rem; flex: 1; } + > * { + overflow-y: auto; + overflow-x: hidden; + } } } diff --git a/modules/cms-ui/themes/default/style/openrat-base.min.css b/modules/cms-ui/themes/default/style/openrat-base.min.css @@ -1 +1 @@ -*,::before,::after{box-sizing: border-box}.initial-hidden{display: none}*{transition: all ease .5s}div#workbench{width: 100%;height: 100%;display: flex;flex-direction: column}div#workbench > header{height: 4rem;background-color: #2fff99}div#workbench > div{background-color: #ff5772;display: flex;flex: 1;flex-direction: row}div#workbench > div > main{flex: 3}div#workbench > div > nav{width: 10rem;flex: 1}div#workbench > div > aside{xwidth: 10rem;flex: 1}- \ No newline at end of file +*,::before,::after{box-sizing: border-box}.initial-hidden{display: none}*{transition: width ease .5s}div#workbench{width: 100%;height: 100%;display: flex;flex-direction: column}div#workbench > header{height: 3rem}div#workbench > div{display: flex;flex: 1;flex-direction: row;min-height: 0}div#workbench > div > main{flex: 3}div#workbench > div > nav{width: 10rem;flex: 1}div#workbench > div > aside{xwidth: 10rem;flex: 1}div#workbench > div > *{overflow-y: auto;overflow-x: hidden}+ \ No newline at end of file