123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- /* ----------------------------------
- * Drawer
- * ---------------------------------- */
- /* Main region */
- section[role="region"] {
- width: 100%;
- transition: all 0.25s ease;
- position: relative;
- z-index: 100;
- }
- section[role="region"]:target {
- transform: translateX(80%);
- }
- /* Hide anchor to change target */
- section[role="region"] > header:first-child > a:first-of-type {
- display: none;
- }
- section[role="region"]:target > header:first-child > a:first-of-type {
- display: block;
- }
- section[role="region"] > header:first-child > a:last-of-type {
- display: block;
- }
- section[role="region"]:target > header:first-child > a:last-of-type {
- display: none;
- }
- /* Sidebar */
- section[data-type="sidebar"] {
- position: absolute;
- width: 80%;
- background: url(drawer/images/ui/pattern.png) repeat;
- height: 100%;
- top: 0;
- left: 0;
- overflow: hidden;
- }
- /* Sidebar header */
- section[data-type="sidebar"] > header {
- position: relative;
- z-index: 10;
- height: 5rem;
- color: #fff;
- background: url(drawer/images/ui/header.png) repeat-x left bottom / 100% auto;
- }
- section[data-type="sidebar"] > header:after {
- content: "";
- height: 0.3rem;
- position: absolute;
- top: 100%;
- left: 0;
- right: 0;
- background: url(drawer/images/ui/shadow_header.png) repeat-x left top;
- background-size: auto 100%;
- }
- section[data-type="sidebar"] > header h1 {
- font-size: 2.2rem;
- line-height: 4.8rem;
- text-align: left;
- white-space: nowrap;
- text-overflow: ellipsis;
- display: block;
- overflow: hidden;
- margin: 0 0 0 3rem;
- height: 100%
- }
- section[data-type="sidebar"] > header h1 em {
- font-weight: bold;
- font-size: 1.5rem;
- line-height: 1em;
- }
- /* Generic set of actions in toolbar */
- section[data-type="sidebar"] > header menu[type="toolbar"] {
- height: 100%;
- float: right;
- }
- section[data-type="sidebar"] > header menu[type="toolbar"] a,
- section[data-type="sidebar"] > header menu[type="toolbar"] button {
- height: 4.9rem;
- line-height: 4.9rem;
- float: left;
- background: none;
- padding: 0 1.75rem;
- -moz-box-sizing: border-box;
- min-width: 5rem;
- text-align: center;
- }
- section[data-type="sidebar"] > header menu[type="toolbar"] a:last-child,
- section[data-type="sidebar"] > header menu[type="toolbar"] button:last-child {
- background: url(drawer/images/ui/separator.png) no-repeat left center / auto 3.1rem;
- }
- section[data-type="sidebar"] > header menu[type="toolbar"] {
- padding: 0;
- margin: 0;
- }
- section[data-type="sidebar"] > header a,
- section[data-type="sidebar"] > header button {
- border: none;
- background: none;
- padding: 0;
- overflow: hidden;
- font-weight: 600;
- font-size: 1.4rem;
- line-height: 1.1em;
- color: #fff;
- }
- section[data-type="sidebar"] > header a:first-letter,
- section[data-type="sidebar"] > header button:first-letter {
- text-transform: uppercase;
- }
- /* Icon definitions */
- section[data-type="sidebar"] > header .icon {
- display: inline-block;
- width: 3rem;
- height: 4.9rem;
- margin: 0 -1rem;
- background: transparent no-repeat center center / 100% auto;
- font-size: 0;
- overflow: hidden;
- position: relative;
- }
- section[data-type="sidebar"]:after {
- content: "";
- width: 1rem;
- background: url(drawer/images/ui/shadow.png) right top repeat-y;
- height: 100%;
- position: absolute;
- top: 0;
- right: 0;
- z-index: 5;
- }
- section[data-type="sidebar"] > nav {
- overflow-y: auto;
- max-height: 100%;
- margin-right: -0.8rem;
- }
- section[data-type="sidebar"] > nav > h2 {
- font-weight: bold;
- font-size: 1.4rem;
- line-height: 3.3rem;
- text-indent: 3rem;
- color: #fff;
- background: url(drawer/images/ui/pattern_subheader.png) repeat left top;
- border-bottom: 0.1rem solid #596068;
- margin: 0;
- padding-right: 0.8rem;
- }
- section[data-type="sidebar"] [role="toolbar"] {
- position: absolute;
- }
- section[data-type="sidebar"] > nav > ul {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- section[data-type="sidebar"] > nav > ul > li {
- color: #fff;
- list-style: none;
- transition: background 0.2s ease;
- }
- section[data-type="sidebar"] > nav > ul > li:active {
- background: #00ABCC;
- }
- section[data-type="sidebar"] > nav > ul > li > a {
- text-decoration: none;
- color: #fff;
- font-size: 1.6rem;
- line-height: 4.35rem;
- border-bottom: 0.1rem solid #596068;
- text-indent: 3rem;
- padding-right: 0.8rem;
- width: 100%;
- -moz-box-sizing: border-box;
- display: block;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
|