You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/12/12 11:34:42 UTC
[isis] 02/10: ISIS-2210 : adds additional media queries to specify
100% range for max-width <= 767
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
commit c194c7b5233fc787f25e13e2c988d1bb4928c0f5
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Thu Dec 12 11:01:08 2019 +0000
ISIS-2210 : adds additional media queries to specify 100% range for max-width <= 767
and as a bit of candyfloss, additional widths for other resolutions at 768, 1024, 1400 and above.
---
.../isis/viewer/wicket/ui/pages/simple-sidebar.css | 509 ++++++++++++++++++---
1 file changed, 438 insertions(+), 71 deletions(-)
diff --git a/core/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/simple-sidebar.css b/core/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/simple-sidebar.css
index bae08b0..a4303e0 100644
--- a/core/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/simple-sidebar.css
+++ b/core/viewers/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/pages/simple-sidebar.css
@@ -19,96 +19,463 @@ body {
transition: all 0.5s ease;
}
-#wrapper.toggled {
- padding-left: 25%;
-}
-#sidebar-wrapper {
- z-index: 1000;
- position: fixed;
- left: 25%;
- width: 0;
- height: 100%;
- margin-left: -25%;
- overflow-y: auto;
- border: 1px dotted;
- -webkit-transition: all 0.5s ease;
- -moz-transition: all 0.5s ease;
- -o-transition: all 0.5s ease;
- transition: all 0.5s ease;
-}
+@media(min-width:1400px) {
-#wrapper.toggled #sidebar-wrapper {
- width: 25%;
-}
+ #wrapper.toggled {
+ padding-left: 20%;
+ }
-#page-content-wrapper {
- width: 100%;
- position: absolute;
- padding: 15px;
-}
+ #sidebar-wrapper {
+ z-index: 1000;
+ position: fixed;
+ left: 20%;
+ width: 0;
+ height: 100%;
+ margin-left: -20%;
+ overflow-y: auto;
+ border: 1px dotted;
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+ }
-#wrapper.toggled #page-content-wrapper {
- position: absolute;
- margin-right: -25%;
-}
+ #wrapper.toggled #sidebar-wrapper {
+ width: 20%;
+ }
-/* Sidebar Styles */
+ #page-content-wrapper {
+ width: 100%;
+ position: absolute;
+ padding: 15px;
+ }
-.sidebar-nav {
- position: absolute;
- top: 0;
- width: 100%;
- margin: 0;
- padding: 0;
- list-style: none;
-}
+ #wrapper.toggled #page-content-wrapper {
+ position: absolute;
+ margin-right: -20%;
+ }
+ /* Sidebar Styles */
-.sidebar-nav li a {
- display: block;
- text-decoration: none;
- color: #999999;
-}
+ .sidebar-nav {
+ position: absolute;
+ top: 0;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
-.sidebar-nav li a:hover {
- text-decoration: none;
- color: #fff;
- background: rgba(255,255,255,0.2);
-}
-.sidebar-nav li a:active,
-.sidebar-nav li a:focus {
- text-decoration: none;
-}
+ .sidebar-nav li a {
+ display: block;
+ text-decoration: none;
+ color: #999999;
+ }
-.sidebar-nav > .sidebar-brand {
- height: 65px;
- font-size: 18px;
- line-height: 60px;
-}
+ .sidebar-nav li a:hover {
+ text-decoration: none;
+ color: #fff;
+ background: rgba(255,255,255,0.2);
+ }
-.sidebar-nav > .sidebar-brand a {
- color: #999999;
-}
+ .sidebar-nav li a:active,
+ .sidebar-nav li a:focus {
+ text-decoration: none;
+ }
+
+ .sidebar-nav > .sidebar-brand {
+ height: 65px;
+ font-size: 18px;
+ line-height: 60px;
+ }
+
+ .sidebar-nav > .sidebar-brand a {
+ color: #999999;
+ }
+
+ .sidebar-nav > .sidebar-brand a:hover {
+ color: #fff;
+ background: none;
+ }
+
+ .sidebar-panel {
+ padding: 20px;
+ }
+ .sidebar-content {
+ padding-top: 20px;
+ padding-bottom: 20px;
+ }
+
+ #wrapper {
+ padding-left: 20%;
+ }
+
+ #wrapper.toggled {
+ padding-left: 0;
+ }
+
+ #sidebar-wrapper {
+ width: 20%;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 0;
+ border: 0;
+ }
+
+ #page-content-wrapper {
+ padding: 20px;
+ position: relative;
+ }
-.sidebar-nav > .sidebar-brand a:hover {
- color: #fff;
- background: none;
+ #wrapper.toggled #page-content-wrapper {
+ position: relative;
+ margin-right: 0;
+ }
}
-.sidebar-panel {
- padding: 20px;
+@media(min-width:1024px) and (max-width: 1399px) {
+
+ #wrapper.toggled {
+ padding-left: 30%;
+ }
+
+ #sidebar-wrapper {
+ z-index: 1000;
+ position: fixed;
+ left: 30%;
+ width: 0;
+ height: 100%;
+ margin-left: -30%;
+ overflow-y: auto;
+ border: 1px dotted;
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 30%;
+ }
+
+ #page-content-wrapper {
+ width: 100%;
+ position: absolute;
+ padding: 15px;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ position: absolute;
+ margin-right: -30%;
+ }
+
+ /* Sidebar Styles */
+
+ .sidebar-nav {
+ position: absolute;
+ top: 0;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+
+ .sidebar-nav li a {
+ display: block;
+ text-decoration: none;
+ color: #999999;
+ }
+
+ .sidebar-nav li a:hover {
+ text-decoration: none;
+ color: #fff;
+ background: rgba(255,255,255,0.2);
+ }
+
+ .sidebar-nav li a:active,
+ .sidebar-nav li a:focus {
+ text-decoration: none;
+ }
+
+ .sidebar-nav > .sidebar-brand {
+ height: 65px;
+ font-size: 18px;
+ line-height: 60px;
+ }
+
+ .sidebar-nav > .sidebar-brand a {
+ color: #999999;
+ }
+
+ .sidebar-nav > .sidebar-brand a:hover {
+ color: #fff;
+ background: none;
+ }
+
+ .sidebar-panel {
+ padding: 20px;
+ }
+ .sidebar-content {
+ padding-top: 20px;
+ padding-bottom: 20px;
+ }
+
+ #wrapper {
+ padding-left: 30%;
+ }
+
+ #wrapper.toggled {
+ padding-left: 0;
+ }
+
+ #sidebar-wrapper {
+ width: 30%;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 0;
+ border: 0;
+ }
+
+ #page-content-wrapper {
+ padding: 20px;
+ position: relative;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ position: relative;
+ margin-right: 0;
+ }
}
-.sidebar-content {
- padding-top: 20px;
- padding-bottom: 20px;
+
+@media(min-width:768px) and (max-width: 1023px) {
+
+ #wrapper.toggled {
+ padding-left: 50%;
+ }
+
+ #sidebar-wrapper {
+ z-index: 1000;
+ position: fixed;
+ left: 50%;
+ width: 0;
+ height: 100%;
+ margin-left: -50%;
+ overflow-y: auto;
+ border: 1px dotted;
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 50%;
+ }
+
+ #page-content-wrapper {
+ width: 100%;
+ position: absolute;
+ padding: 15px;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ position: absolute;
+ margin-right: -50%;
+ }
+
+ /* Sidebar Styles */
+
+ .sidebar-nav {
+ position: absolute;
+ top: 0;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+
+ .sidebar-nav li a {
+ display: block;
+ text-decoration: none;
+ color: #999999;
+ }
+
+ .sidebar-nav li a:hover {
+ text-decoration: none;
+ color: #fff;
+ background: rgba(255,255,255,0.2);
+ }
+
+ .sidebar-nav li a:active,
+ .sidebar-nav li a:focus {
+ text-decoration: none;
+ }
+
+ .sidebar-nav > .sidebar-brand {
+ height: 65px;
+ font-size: 18px;
+ line-height: 60px;
+ }
+
+ .sidebar-nav > .sidebar-brand a {
+ color: #999999;
+ }
+
+ .sidebar-nav > .sidebar-brand a:hover {
+ color: #fff;
+ background: none;
+ }
+
+ .sidebar-panel {
+ padding: 20px;
+ }
+ .sidebar-content {
+ padding-top: 20px;
+ padding-bottom: 20px;
+ }
+
+ #wrapper {
+ padding-left: 50%;
+ }
+
+ #wrapper.toggled {
+ padding-left: 0;
+ }
+
+ #sidebar-wrapper {
+ width: 50%;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 0;
+ border: 0;
+ }
+
+ #page-content-wrapper {
+ padding: 20px;
+ position: relative;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ position: relative;
+ margin-right: 0;
+ }
}
+@media(max-width:767px) {
+
+ #wrapper:not(.toggled) #page-content-wrapper {
+ visibility: hidden;
+ opacity: 0;
+ -webkit-transition: visibility 0s 0.5s, opacity 0.5s linear;
+ -moz-transition: visibility 0s 0.5s, opacity 0.5s linear;
+ -o-transition: visibility 0s 0.5s, opacity 0.5s linear;
+ transition: visibility 0s 0.5s, opacity 0.5s linear;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ visibility: visible;
+ opacity: 1;
+ -webkit-transition: opacity 0.5s linear;
+ -moz-transition: opacity 0.5s linear;
+ -o-transition: opacity 0.5s linear;
+ transition: opacity 0.5s linear;
+ }
+
+ #wrapper.toggled {
+ padding-left: 100%;
+ }
+
+ #sidebar-wrapper {
+ z-index: 1000;
+ position: fixed;
+ left: 100%;
+ width: 0;
+ height: 100%;
+ margin-left: -100%;
+ overflow-y: auto;
+ border: 1px dotted;
+ -webkit-transition: all 0.5s ease;
+ -moz-transition: all 0.5s ease;
+ -o-transition: all 0.5s ease;
+ transition: all 0.5s ease;
+ }
+
+ #wrapper.toggled #sidebar-wrapper {
+ width: 100%;
+ }
+
+ #page-content-wrapper {
+ width: 100%;
+ position: absolute;
+ padding: 15px;
+ }
+
+ #wrapper.toggled #page-content-wrapper {
+ position: absolute;
+ margin-right: -100%;
+ }
+
+ /* Sidebar Styles */
+
+ .sidebar-nav {
+ position: absolute;
+ top: 0;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+
+ .sidebar-nav li a {
+ display: block;
+ text-decoration: none;
+ color: #999999;
+ }
+
+ .sidebar-nav li a:hover {
+ text-decoration: none;
+ color: #fff;
+ background: rgba(255,255,255,0.2);
+ }
+
+ .sidebar-nav li a:active,
+ .sidebar-nav li a:focus {
+ text-decoration: none;
+ }
+
+ .sidebar-nav > .sidebar-brand {
+ height: 65px;
+ font-size: 18px;
+ line-height: 60px;
+ }
+
+ .sidebar-nav > .sidebar-brand a {
+ color: #999999;
+ }
+
+ .sidebar-nav > .sidebar-brand a:hover {
+ color: #fff;
+ background: none;
+ }
+
+ .sidebar-panel {
+ padding: 20px;
+ }
+ .sidebar-content {
+ padding-top: 20px;
+ padding-bottom: 20px;
+ }
-@media(min-width:768px) {
#wrapper {
- padding-left: 25%;
+ padding-left: 100%;
}
#wrapper.toggled {
@@ -116,7 +483,7 @@ body {
}
#sidebar-wrapper {
- width: 25%;
+ width: 100%;
}
#wrapper.toggled #sidebar-wrapper {