Line 1: | Line 1: | ||
− | + | html { | |
+ | scroll-behavior: smooth; | ||
+ | } | ||
body { | body { | ||
− | font-family: ' | + | font-family: 'TW Cen MT Regular'; |
background: #fafafa; | background: #fafafa; | ||
} | } | ||
p { | p { | ||
− | font-family: ' | + | font-family: 'Segoe UI Symbol Regular'; |
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: 300; | font-weight: 300; | ||
Line 50: | Line 52: | ||
height: 100vh; | height: 100vh; | ||
z-index: 2000; | z-index: 2000; | ||
− | background: # | + | background: #70a2c5; |
color: #fff; | color: #fff; | ||
transition: all 0.3s; | transition: all 0.3s; | ||
Line 63: | Line 65: | ||
#dismiss { | #dismiss { | ||
− | width: | + | font-size: 1.5em; |
− | height: | + | width: 30px; |
+ | height: 25px; | ||
line-height: 35px; | line-height: 35px; | ||
text-align: center; | text-align: center; | ||
− | |||
position: absolute; | position: absolute; | ||
top: 10px; | top: 10px; | ||
− | right: | + | right: 5px; |
cursor: pointer; | cursor: pointer; | ||
-webkit-transition: all 0.3s; | -webkit-transition: all 0.3s; | ||
Line 79: | Line 81: | ||
#dismiss:hover { | #dismiss:hover { | ||
background: #fff; | background: #fff; | ||
− | color: #7386D5; | + | color: #7386D5; /**/ |
} | } | ||
Line 97: | Line 99: | ||
display: block; | display: block; | ||
opacity: 1; | opacity: 1; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 120: | Line 117: | ||
#sidebar ul li a:hover { | #sidebar ul li a:hover { | ||
− | color: # | + | color: #76b0d8; |
background: #fff; | background: #fff; | ||
} | } | ||
Line 127: | Line 124: | ||
a[aria-expanded="true"] { | a[aria-expanded="true"] { | ||
color: #fff; | color: #fff; | ||
− | background: # | + | background: #6094b7; |
} | } | ||
Line 143: | Line 140: | ||
ul ul a { | ul ul a { | ||
− | |||
padding-left: 10px !important; | padding-left: 10px !important; | ||
− | background: # | + | background: #6094b7; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
Revision as of 15:58, 15 October 2018
html {
scroll-behavior: smooth;
} body {
font-family: 'TW Cen MT Regular'; background: #fafafa;
}
p {
font-family: 'Segoe UI Symbol Regular'; font-size: 1.1em; font-weight: 300; line-height: 1.7em; color: #999;
}
a, a:hover, a:focus {
color: inherit; text-decoration: none; transition: all 0.3s;
}
.navbar {
padding: 15px 10px; background: #fff; border: none; border-radius: 0; margin-bottom: 40px; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
.navbar-btn {
box-shadow: none; outline: none !important; border: none;
}
.line {
width: 100%; height: 1px; border-bottom: 1px dashed #ddd; margin: 40px 0;
}
- sidebar {
width: 250px; position: fixed; top: 0; left: -250px; height: 100vh; z-index: 2000; background: #70a2c5; color: #fff; transition: all 0.3s; overflow-y: scroll; box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2); text-align: center;
}
- sidebar.active {
left: 0;
}
- dismiss {
font-size: 1.5em; width: 30px; height: 25px; line-height: 35px; text-align: center; position: absolute; top: 10px; right: 5px; cursor: pointer; -webkit-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s;
}
- dismiss:hover {
background: #fff; color: #7386D5; /**/
}
.overlay {
display: none; position: fixed; top:0; left:0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); z-index: 1999; opacity: 0; transition: all 0.5s ease-in-out;
} .overlay.active {
display: block; opacity: 1;
}
- sidebar ul.components {
padding: 20px 0;
}
- sidebar ul p {
color: #fff; padding: 10px;
}
- sidebar ul li a {
padding: 10px; font-size: 1.1em; display: block;
}
- sidebar ul li a:hover {
color: #76b0d8; background: #fff;
}
- sidebar ul li.active>a,
a[aria-expanded="true"] {
color: #fff; background: #6094b7;
}
a[data-toggle="collapse"] {
position: relative;
}
.dropdown-toggle::after {
display: block; position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
}
ul ul a {
padding-left: 10px !important; background: #6094b7;
}
- content {
width: 100%; padding: 20px; min-height: 100vh; transition: all 0.3s; position: absolute; top: 0; right: 0;
}
.nav-item .active {
text-decoration: underline;
}