Massive rework and beautification
This commit is contained in:
parent
cceb0c945e
commit
871c538bfd
59 changed files with 427 additions and 3278 deletions
BIN
assets/icons/logo.png
Normal file
BIN
assets/icons/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
218
assets/scss/_nav.scss
Normal file
218
assets/scss/_nav.scss
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
//
|
||||
// Main navbar
|
||||
//
|
||||
|
||||
.td-navbar-cover {
|
||||
background: $primary;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
background: transparent !important;
|
||||
|
||||
.nav-link {
|
||||
text-shadow: 1px 1px 2px $dark;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.navbar-bg-onscroll .nav-link {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-bg-onscroll {
|
||||
background: $primary !important;
|
||||
opacity: inherit;
|
||||
}
|
||||
|
||||
.td-navbar {
|
||||
background: #212121;
|
||||
min-height: 4rem;
|
||||
margin: 0;
|
||||
z-index: 32;
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.navbar-brand {
|
||||
text-transform: none;
|
||||
text-align: middle;
|
||||
|
||||
.nav-link {
|
||||
display: inline-block;
|
||||
margin-right: -30px;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: inline-block;
|
||||
margin: 0 10px;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
text-transform: none;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
.td-search-input {
|
||||
border: none;
|
||||
color: $navbar-dark-color;
|
||||
@include placeholder {
|
||||
color: $navbar-dark-color;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
padding-right: .5rem;
|
||||
padding-left: .75rem;
|
||||
|
||||
.td-navbar-nav-scroll {
|
||||
max-width: 100%;
|
||||
height: 2.5rem;
|
||||
margin-top: .25rem;
|
||||
overflow: hidden;
|
||||
font-size: .875rem;
|
||||
|
||||
.nav-link {
|
||||
padding-right: .25rem;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.navbar-nav {
|
||||
padding-bottom: 2rem;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Icons
|
||||
#main_navbar {
|
||||
li i {
|
||||
padding-right: 0.5em;
|
||||
|
||||
&:before {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
min-width: 1em;
|
||||
}
|
||||
}
|
||||
.alert {
|
||||
background-color: inherit;
|
||||
padding:0;
|
||||
color: $secondary;
|
||||
border: 0;
|
||||
font-weight: inherit;
|
||||
|
||||
&:before {
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: "Font Awesome 5 Free";
|
||||
font-weight: 900;
|
||||
content: "\f0d9";
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Foldable sidebar menu
|
||||
nav.foldable-nav {
|
||||
|
||||
&#td-section-nav {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&#td-section-nav label {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.td-sidebar-nav__section, .with-child ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ul-1 > li {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
ul.foldable {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
|
||||
}
|
||||
|
||||
input:checked ~ ul.foldable {
|
||||
max-height: 100000vmax;
|
||||
transition: max-height 1s ease-in-out;
|
||||
}
|
||||
|
||||
input[type=checkbox] { display: none; }
|
||||
|
||||
.with-child, .without-child {
|
||||
position: relative;
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.ul-1 .with-child > label:before {
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
text-rendering: auto;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f0da";
|
||||
position: absolute;
|
||||
left: 0.1em;
|
||||
padding-left: 0.4em;
|
||||
padding-right: 0.4em;
|
||||
font-size: 1em;
|
||||
color: $gray-900;
|
||||
transition: all 0.5s;
|
||||
&:hover{
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
}
|
||||
|
||||
.ul-1 .with-child > input:checked ~ label:before {
|
||||
color: $primary;
|
||||
transform: rotate(90deg);
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
|
||||
.with-child ul { margin-top: 0.1em; }
|
||||
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
|
||||
nav.foldable-nav {
|
||||
|
||||
.ul-1 .with-child > label:hover:before {
|
||||
color: $primary;
|
||||
transform: rotate(30deg);
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
|
||||
.ul-1 .with-child > input:checked ~ label:hover:before {
|
||||
color: $primary;
|
||||
transform: rotate(60deg) !important;
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
}
|
||||
}
|
||||
65
assets/scss/_sidebar-toc.scss
Normal file
65
assets/scss/_sidebar-toc.scss
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
//
|
||||
// Right side toc
|
||||
//
|
||||
.td-sidebar-toc {
|
||||
border-left: 1px solid $border-color;
|
||||
|
||||
@supports (position: sticky) {
|
||||
position: sticky;
|
||||
top: 4rem;
|
||||
height: calc(100vh - 4rem);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
order: 2;
|
||||
padding-top: 0.75rem;
|
||||
padding-bottom: 1.5rem;
|
||||
vertical-align: top;
|
||||
|
||||
}
|
||||
|
||||
.td-page-meta {
|
||||
a {
|
||||
display: block;
|
||||
font-weight: $font-weight-medium;
|
||||
}
|
||||
}
|
||||
|
||||
.td-toc {
|
||||
padding-top: 5px;
|
||||
margin-top: 10px;
|
||||
border-top: 1px solid $black;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
font-weight: $font-weight-medium;
|
||||
padding-bottom: .25rem;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li li {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
#TableOfContents {
|
||||
// Hugo's ToC is a mouthful, this can be used to style the top level h2 entries.
|
||||
> ul > li > ul > li > a {}
|
||||
|
||||
a {
|
||||
color: $gray-600;
|
||||
|
||||
&:hover {
|
||||
color: $blue;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
2
assets/scss/_styles_project.scss
Normal file
2
assets/scss/_styles_project.scss
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
.td-page-meta--child { display: none !important; }
|
||||
.td-page-meta--project-issue { display: none !important; }
|
||||
|
|
@ -8,7 +8,7 @@ Add styles or override variables from the theme here.
|
|||
|
||||
body {
|
||||
font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif !important;
|
||||
font-weight:300 !important;
|
||||
font-weight:500 !important;
|
||||
}
|
||||
|
||||
$display1-weight: 500 !default;
|
||||
|
|
@ -34,7 +34,7 @@ ul, ol {
|
|||
}
|
||||
|
||||
.navbar-brand {
|
||||
color: #048273 !important
|
||||
color: #008489 !important
|
||||
}
|
||||
|
||||
.navbar-bg-onscroll {
|
||||
|
|
@ -119,8 +119,8 @@ input[type="search"]::placeholder {
|
|||
.hero {
|
||||
padding: 20px 0px 25px 0px;
|
||||
color: white;
|
||||
background: rgb(33,39,73);
|
||||
background: linear-gradient(130deg, #473782 50%, #2c2c62 70%);
|
||||
background: rgb(65, 127, 143);
|
||||
background: linear-gradient(130deg, #4487a1 50%, #0188a3 70%);
|
||||
margin-left: -15px;
|
||||
margin-right: -15px;
|
||||
position: relative;
|
||||
|
|
@ -150,7 +150,7 @@ input[type="search"]::placeholder {
|
|||
width: 60vw;
|
||||
height: 60vw;
|
||||
display: block;
|
||||
background: linear-gradient(90deg, rgba(42,24,102,1) 59%, rgba(44,44,98,1) 70%);
|
||||
background: linear-gradient(90deg, rgb(0, 129, 155) 59%, rgba(0,145,193,1) 70%);
|
||||
position: absolute;
|
||||
left: -20vw;
|
||||
top: -20vw;
|
||||
|
|
@ -163,7 +163,7 @@ input[type="search"]::placeholder {
|
|||
width: 20vw;
|
||||
height: 100vw;
|
||||
display: block;
|
||||
background: linear-gradient(-74deg, #2c2c62 50%, #3f3479 70%);
|
||||
background: linear-gradient(-74deg, #007e97 50%, #0091c1 70%);
|
||||
position: absolute;
|
||||
left: 55vw;
|
||||
bottom: -40vw;
|
||||
|
|
@ -190,11 +190,11 @@ input[type="search"]::placeholder {
|
|||
// }
|
||||
|
||||
.hero-big {
|
||||
background: rgb(112, 85, 255);
|
||||
background: rgb(0,145,193);
|
||||
background: linear-gradient(
|
||||
140deg,
|
||||
rgba(112, 85, 255, 1) 0%,
|
||||
rgba(140, 61, 180, 1) 100%
|
||||
rgba(0,145,193, 1) 0%,
|
||||
rgba(0,94,113, 1) 100%
|
||||
);
|
||||
padding: 12px 38px;
|
||||
border: none;
|
||||
|
|
@ -206,14 +206,14 @@ input[type="search"]::placeholder {
|
|||
align-items: center;
|
||||
|
||||
font-size: 22px;
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
margin: 10px 0px 40px 0px;
|
||||
}
|
||||
|
||||
.hero-mid {
|
||||
background: rgb(112, 85, 255);
|
||||
background: linear-gradient(140deg,rgba(112, 85, 255, 1) 0%, rgba(140, 61, 180, 1) 100%);
|
||||
background: rgb(0,145,193);
|
||||
background: linear-gradient(140deg,rgba(0,145,193, 1) 0%, rgba(0,94,113, 1) 100%);
|
||||
padding: 16px 30px;
|
||||
border-radius: 4px;
|
||||
border: none;
|
||||
|
|
@ -222,7 +222,7 @@ input[type="search"]::placeholder {
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
margin: 30px 0px 10px 0px;
|
||||
&:hover {
|
||||
|
|
@ -247,7 +247,7 @@ input[type="search"]::placeholder {
|
|||
border-bottom: 1px solid transparent;
|
||||
&:hover {
|
||||
color: #fff !important;
|
||||
border-bottom: 1px solid #E361FD;
|
||||
border-bottom: 1px solid #00b1f7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -273,7 +273,7 @@ input[type="search"]::placeholder {
|
|||
|
||||
.section-text {
|
||||
color: #5a5b75;
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
margin: 12px 0px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
|
@ -441,7 +441,7 @@ input[type="search"]::placeholder {
|
|||
text-transform: uppercase;
|
||||
border-radius: 5px;
|
||||
color: #5a5b75;
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
|
@ -461,20 +461,20 @@ input[type="search"]::placeholder {
|
|||
background: white;
|
||||
padding: 12px 22px;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #8147d2;
|
||||
border: 1px solid #00b1f7;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: #8147d2;
|
||||
font-weight: 600;
|
||||
color: #00b1f7;
|
||||
margin: 30px 0px 10px 0px;
|
||||
font-weight: 700;
|
||||
|
||||
&:hover {
|
||||
background: #7055ff;
|
||||
background: linear-gradient(140deg, #7055ff 0%, #8c3db4 100%);
|
||||
background: #55d7ff;
|
||||
background: linear-gradient(140deg, #55d7ff 0%, #3d98b4 100%);
|
||||
color: #fff;
|
||||
box-shadow: 0 3px 7px #b7b7b7;
|
||||
}
|
||||
|
|
@ -516,7 +516,7 @@ input[type="search"]::placeholder {
|
|||
}
|
||||
|
||||
.text-highlight {
|
||||
color: #8147d2;
|
||||
color: #00b1f7;
|
||||
}
|
||||
|
||||
.community-cards .row {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue