refactor: portfolio, alert, 404, TOC and smaller fixes
4 files added
9 files modified
| | |
| | | font-size: 1.4rem; |
| | | } |
| | | |
| | | .back-button { |
| | | padding-top: 30px; |
| | | max-width: 100px; |
| | | padding-left: 40px; |
| | | float: left; |
| | | } |
| | | |
| | | /* |
| | | #fb_comments_container { |
| | |
| | | padding: 6px 12px; |
| | | } |
| | | |
| | | /* Portfolio */ |
| | | /* |
| | | .cta { |
| | | padding-bottom: 1em; |
| | | } |
| | |
| | | .box--right { |
| | | margin-top: -24px; |
| | | } |
| | | */ |
| | | |
| | | /* Menu */ |
| | | .menu { |
| | |
| | | width: 100px; |
| | | float: right; |
| | | } |
| | | |
| | | /* |
| | | .page_404 { |
| | | text-align: center; |
| | | padding-top: 50px; |
| | | } |
| | | /* |
| | | |
| | | .navbar-burger { |
| | | display: none; |
| | | } |
| | | */ |
| | | |
| | | |
| | | #TableOfContents { |
| | | display: block; |
| | |
| | | display: inherit; |
| | | } |
| | | |
| | | |
| | | .alert { |
| | | padding: 1rem; |
| | | border-radius: 1 px; |
| | |
| | | font-weight: 800; |
| | | margin-right: 0.75rem; |
| | | } |
| | | */ |
| | | |
| | | @media screen and (min-width: 961px), print { |
| | | /* header { |
| | |
| | | |
| | | /* .nav__links li:not(:last-of-type) { |
| | | padding-right: 20px; |
| | | } */ |
| | | } |
| | | |
| | | .sidebar { |
| | | height: 100vh; |
| | |
| | | position: fixed; |
| | | width: var(--sidebar-width); |
| | | } |
| | | /* |
| | | .sidebar__content { |
| | | display: flex; |
| | | flex-direction: column; |
| | |
| | | .wrapper { |
| | | display: flex; |
| | | } |
| | | */ |
| | | |
| | | |
| | | .footer--base { |
| | | display: none; |
| | |
| | | .box--right { |
| | | margin-left: auto; |
| | | } |
| | | */ |
| | | } |
| | | |
| | | @media screen and (max-width: 960px) { |
| | |
| | | max-width: 100%; |
| | | margin: 0; |
| | | } |
| | | */ |
| | | |
| | | |
| | | .footer--sidebar { |
| | | display: none; |
| | | } |
| | | |
| | | /* nav { |
| | | nav { |
| | | display: none; |
| | | } */ |
| | | |
| | |
| | | .list-with-title .listing .listing-post a { |
| | | width: 80%; |
| | | } |
| | | |
| | | /* |
| | | .box--right, |
| | | .box--left { |
| | | border-bottom: 1px solid var(--border-color); |
| | |
| | | padding-bottom: 0px; |
| | | padding-top: 48px; |
| | | } |
| | | */ |
| | | /* |
| | | .triangle { |
| | | display: none; |
| | |
| | | header { |
| | | display: none; |
| | | } |
| | | } */ |
| | | } |
| | | |
| | | @media (min-width: 1921px) { |
| | | .sidebar { |
| | |
| | | .content { |
| | | padding-right: 20%; |
| | | } |
| | | /* header { |
| | | header { |
| | | position: fixed; |
| | | width: var(--content-width); |
| | | } */ |
| | | } |
| | | } |
| | | */ |
| | |
| | | @import './partials/components/comment'; |
| | | @import './partials/components/languageswitch'; |
| | | @import './partials/components/post'; |
| | | @import './partials/components/alert'; |
| | | @import './partials/components/portfolio'; |
| | | @import './partials/components/page404'; |
| | | @import './partials/vendors/mediumzoom'; |
| | | @import './partials/vendors/contactform'; |
| | | @import './partials/vendors/tableofcontents'; |
| | |
| | | $primary-lighter: #eeeeee; |
| | | $info: #0366d7; |
| | | $shadow: 0 8px 16px rgba(10, 10, 10, 0.1); |
| | | $border: 1px solid rgba(0, 0, 0, 0.15); |
| | | $alert: #ffc107; |
| | | |
| | | /* Former variables*/ |
| | | $secondary-bg-color: #eeeeee; |
| New file |
| | |
| | | .alert { |
| | | padding: 1rem; |
| | | border-radius: 1 px; |
| | | border-style: solid; |
| | | border-color:$alert; |
| | | border-radius: 0.25rem; |
| | | border-width: 2px; |
| | | |
| | | #indicator { |
| | | background-color: $alert; |
| | | display: inline-block; |
| | | border-radius: 9999px; |
| | | padding: 0.5rem; |
| | | height: 1.5rem; |
| | | width: 2.5rem; |
| | | height: 2.5rem; |
| | | text-align: center; |
| | | color: $accent; |
| | | font-weight: 800; |
| | | margin-right: 0.75rem; |
| | | } |
| | | } |
| | | |
| | |
| | | height: auto; |
| | | margin-top: 80px; |
| | | } |
| | | |
| | | @media (min-width: 1921px) { |
| | | .content { |
| | | padding-right: 20%; |
| | | } |
| | | } |
| | |
| | | .footer { |
| | | clear: both; |
| | | text-align: center; |
| | | font-size: 1rem; |
| | | margin: 0 auto; |
| | | bottom: 0; |
| | | width: 100%; |
| | | padding-bottom: 20px; |
| | | flex: 0; |
| | | position: relative; |
| | | clear: both; |
| | | text-align: center; |
| | | font-size: 1rem; |
| | | margin: 0 auto; |
| | | bottom: 0; |
| | | width: 100%; |
| | | padding-bottom: 20px; |
| | | flex: 0; |
| | | position: relative; |
| | | |
| | | &__list { |
| | | list-style: none; |
| | | padding: 0; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | &__item:not(:first-of-type)::before { |
| | | content: '\00B7'; |
| | | padding: 4px; |
| | | &__list { |
| | | list-style: none; |
| | | padding: 0; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | &__item:not(:first-of-type)::before { |
| | | content: '\00B7'; |
| | | padding: 4px; |
| | | } |
| | | } |
| | | @media screen and (min-width: 961px), print { |
| | | .footer { |
| | | &--base { |
| | | display: none; |
| | | } |
| | | } |
| | | &--sidebar { |
| | | display: none; |
| | | } |
| | | } |
| | | } |
| | |
| | | width: 15px; |
| | | transform: rotate(45deg) translateY(0px) translatex(10px); |
| | | height: 15px; |
| | | background: $primary-light; |
| | | background: $accent; |
| | | border-radius: 2px 0px 0px 0px; |
| | | border-color: $primary; |
| | | box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2); |
| New file |
| | |
| | | .page_404 { |
| | | text-align: center; |
| | | padding-top: 50px; |
| | | } |
| New file |
| | |
| | | |
| | | |
| | | .box-wrapper { |
| | | padding: 48px; |
| | | position: relative; |
| | | z-index: 0; |
| | | } |
| | | |
| | | .box-image { |
| | | display: block; |
| | | background-color: #fff; |
| | | position: relative; |
| | | z-index: 1; |
| | | overflow: hidden; |
| | | &--right, |
| | | &--left { |
| | | margin-right: auto; |
| | | margin-left: auto; |
| | | width: calc(100% - 64px); |
| | | background-color: $accent; |
| | | max-width: 400px; |
| | | z-index: -1; |
| | | } |
| | | img { |
| | | min-width: 100%; |
| | | box-shadow: #000; |
| | | overflow: hidden; |
| | | transition: box-shadow 0.3s ease; |
| | | object-fit: cover; |
| | | border-bottom: 0px; |
| | | display: block; |
| | | } |
| | | } |
| | | |
| | | .box { |
| | | background-color: $primary-lighter; |
| | | padding: 32px; |
| | | &--left, &--right { |
| | | margin-top: -24px; |
| | | } |
| | | } |
| | | |
| | | .cta { |
| | | padding-bottom: 1em; |
| | | } |
| | | |
| | | @media screen and (min-width: 961px), print { |
| | | .box { |
| | | padding: 48px; |
| | | box-shadow: $shadow; |
| | | background-color: $accent; |
| | | border-radius: 0.5em; |
| | | |
| | | &--left, |
| | | &--right { |
| | | width: 60%; |
| | | margin-top: -48px; |
| | | z-index: 3; |
| | | background: $primary-lighter; |
| | | } |
| | | |
| | | &--right { |
| | | margin-left: auto; |
| | | } |
| | | } |
| | | |
| | | .box-wrapper::before { |
| | | border: $border; |
| | | content: ''; |
| | | z-index: -1; |
| | | position: absolute; |
| | | top: 10%; |
| | | left: 10%; |
| | | bottom: 10%; |
| | | right: 10%; |
| | | background: transparent; |
| | | border-radius: 0.5em; |
| | | } |
| | | |
| | | .box-image{ |
| | | &--right, &--left { |
| | | width: 60%; |
| | | object-fit: contain; |
| | | max-width: none; |
| | | border-top-right-radius: 0.5em; |
| | | border-top-left-radius: 0.5em; |
| | | } |
| | | |
| | | &--right { |
| | | margin-right: 0; |
| | | margin-left: auto; |
| | | border-bottom-right-radius: 0.5em; |
| | | } |
| | | |
| | | &--left { |
| | | margin-right: auto; |
| | | margin-left: 0; |
| | | border-bottom-left-radius: 0.5em; |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | @media screen and (max-width: 960px) { |
| | | |
| | | .box { |
| | | &--right, &--left { |
| | | border-bottom:$border; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | .box-image{ |
| | | &--left, &--right { |
| | | padding: 32px 32px 0px 32px; |
| | | max-width: inherit; |
| | | } |
| | | } |
| | | |
| | | .box-wrapper { |
| | | padding-left: 0px; |
| | | padding-right: 0px; |
| | | padding-bottom: 0px; |
| | | padding-top: 48px; |
| | | } |
| | | } |
| | |
| | | font-size: 2.2rem; |
| | | margin: 0; |
| | | } |
| | | color: var(--heading-color); |
| | | color: $primary; |
| | | &:hover { |
| | | text-decoration: underline; |
| | | } |
| | |
| | | font-weight: 400; |
| | | font-size: 1.4rem; |
| | | } |
| | | img { |
| | | display: block; |
| | | margin-left: auto; |
| | | margin-right: auto; |
| | | width: 65%; |
| | | max-width: 100%; |
| | | } |
| | | figure { |
| | | max-width: 100%; |
| | | height: auto; |
| | | margin: 0; |
| | | text-align: center; |
| | | |
| | | &.right { |
| | | float: right; |
| | | margin-left: 1.5em; |
| | | max-width: 50%; |
| | | } |
| | | |
| | | &.left { |
| | | float: left; |
| | | margin-right: 1.5em; |
| | | max-width: 50%; |
| | | } |
| | | |
| | | &.big { |
| | | max-width: 100vw; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .post-footer { |
| | | padding: 0 0 10px 0; |
| | | border-bottom: 1px solid var(--border-color); |
| | | border-bottom: $border; |
| | | .meta { |
| | | max-width: 100%; |
| | | display: flex; |
| | |
| | | float: left; |
| | | font-size: 1.2rem; |
| | | margin-bottom: 1em; |
| | | color: var(--body-color); |
| | | color: $primary; |
| | | .date { |
| | | margin-right: 10px; |
| | | margin-left: 5px; |
| | | } |
| | | } |
| | | a { |
| | | text-decoration: none; |
| | | color: $primary; |
| | | &:hover { |
| | | color: #2660ab; |
| | | } |
| | | } |
| | | i { |
| | | margin-right: 6px; |
| | | } |
| | | } |
| | | .info { |
| | | .separator a { |
| | | margin-right: 0.2em; |
| | | } |
| | | } |
| | | .tags { |
| | | padding-bottom: 15px; |
| | | font-size: 1.3rem; |
| | | |
| | | ul { |
| | | list-style-type: none; |
| | | display: inline; |
| | | margin: 0; |
| | | padding: 0; |
| | | } |
| | | |
| | | ul li { |
| | | list-style-type: none; |
| | | margin: 0; |
| | | padding-right: 5px; |
| | | display: inline; |
| | | } |
| | | |
| | | a { |
| | | text-decoration: none; |
| | | color: $primary; |
| | | font-weight: 400; |
| | | &:hover { |
| | | text-decoration: none; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | figure { |
| | | max-width: 100%; |
| | | height: auto; |
| | | margin: 0; |
| | | text-align: center; |
| | | |
| | | &.right { |
| | | float: right; |
| | | margin-left: 1.5em; |
| | | max-width: 50%; |
| | | } |
| | | .post-thumbnail { |
| | | width: 100%; |
| | | padding-bottom: 1em; |
| | | box-shadow: #000; |
| | | border-radius: 0.5em; |
| | | overflow: hidden; |
| | | transition: box-shadow 0.3s ease; |
| | | |
| | | &.left { |
| | | float: left; |
| | | margin-right: 1.5em; |
| | | max-width: 50%; |
| | | } |
| | | |
| | | &.big { |
| | | max-width: 100vw; |
| | | img { |
| | | width: 100%; |
| | | height: $thumbnail-height; |
| | | object-fit: cover; |
| | | border: $border; |
| | | border-bottom: 0px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .post .post-footer .meta a { |
| | | text-decoration: none; |
| | | color: var(--body-color); |
| | | } |
| | | |
| | | .post .post-footer .meta a:hover { |
| | | color: #2660ab; |
| | | } |
| | | |
| | | .post .post-footer .meta i { |
| | | margin-right: 6px; |
| | | } |
| | | |
| | | .post .post-footer .tags { |
| | | padding-bottom: 15px; |
| | | font-size: 1.3rem; |
| | | } |
| | | |
| | | .post .post-footer .tags ul { |
| | | list-style-type: none; |
| | | display: inline; |
| | | margin: 0; |
| | | padding: 0; |
| | | } |
| | | |
| | | .post .post-footer .tags ul li { |
| | | list-style-type: none; |
| | | margin: 0; |
| | | padding-right: 5px; |
| | | display: inline; |
| | | } |
| | | |
| | | .post .post-footer .tags a { |
| | | text-decoration: none; |
| | | color: var(--post-color); |
| | | font-weight: 400; |
| | | } |
| | | |
| | | .post .post-footer .tags a:hover { |
| | | text-decoration: none; |
| | | } |
| | | |
| | | .post .post-thumbnail { |
| | | width: 100%; |
| | | padding-bottom: 1em; |
| | | box-shadow: #000; |
| | | border-radius: 0.5em; |
| | | overflow: hidden; |
| | | transition: box-shadow 0.3s ease; |
| | | } |
| | | |
| | | .post .post-thumbnail img { |
| | | width: 100%; |
| | | height: var(--thumbnail-height); |
| | | object-fit: cover; |
| | | border: 1px solid var(--border-color); |
| | | border-bottom: 0px; |
| | | } |
| | | |
| | | @media screen and (max-width: 960px) { |
| | | .post figure.right { |
| | | float: unset; |
| | | max-width: 100%; |
| | | margin: 0; |
| | | } |
| | | .post { |
| | | figure { |
| | | max-width: 100%; |
| | | height: auto; |
| | | margin: 0; |
| | | text-align: center; |
| | | |
| | | .post figure.left { |
| | | float: unset; |
| | | max-width: 100%; |
| | | margin: 0; |
| | | &.right { |
| | | float: unset; |
| | | max-width: 100%; |
| | | margin: 0; |
| | | } |
| | | |
| | | &.left { |
| | | float: unset; |
| | | max-width: 100%; |
| | | margin: 0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | .sidebar { |
| | | -webkit-background-size: cover; |
| | | background-size: cover; |
| | | background-color: var(--bg-color); |
| | | height: 100%; |
| | | left: 0; |
| | | z-index: 4; |
| | | border-right: 1px solid var(--border-color); |
| | | -webkit-background-size: cover; |
| | | background-size: cover; |
| | | background-color: var(--bg-color); |
| | | height: 100%; |
| | | left: 0; |
| | | z-index: 4; |
| | | border-right: 1px solid var(--border-color); |
| | | |
| | | &__list { |
| | | list-style: none; |
| | | padding: 0; |
| | | font-size: 1.4rem; |
| | | text-align: center; |
| | | |
| | | &-item { |
| | | display: inline; |
| | | padding: 0 4px; |
| | | line-height: 0; |
| | | &__list { |
| | | list-style: none; |
| | | padding: 0; |
| | | font-size: 1.4rem; |
| | | text-align: center; |
| | | |
| | | i { |
| | | margin-right: 3px; |
| | | } |
| | | |
| | | li { |
| | | display: inline; |
| | | padding: 0 4px; |
| | | line-height: 0; |
| | | } |
| | | } |
| | | &-item { |
| | | display: inline; |
| | | padding: 0 4px; |
| | | line-height: 0; |
| | | |
| | | i { |
| | | margin-right: 3px; |
| | | } |
| | | |
| | | &__title { |
| | | top: 40%; |
| | | text-align: center; |
| | | li { |
| | | display: inline; |
| | | padding: 0 4px; |
| | | line-height: 0; |
| | | } |
| | | } |
| | | } |
| | | |
| | | &-description { |
| | | font-size: 1.4rem; |
| | | margin: 0 1em; |
| | | } |
| | | &__title { |
| | | top: 40%; |
| | | text-align: center; |
| | | |
| | | img { |
| | | width: 127px; |
| | | height: 127px; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | h3 { |
| | | text-transform: uppercase; |
| | | font-weight: bold; |
| | | letter-spacing: 2px; |
| | | line-height: 1; |
| | | margin: 1em; |
| | | } |
| | | &-description { |
| | | font-size: 1.4rem; |
| | | margin: 0 1em; |
| | | } |
| | | |
| | | @media screen and (min-width: 961px), print { |
| | | &__content { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | flex-grow: 1; |
| | | } |
| | | img { |
| | | width: 127px; |
| | | height: 127px; |
| | | border-radius: 50%; |
| | | } |
| | | |
| | | h3 { |
| | | text-transform: uppercase; |
| | | font-weight: bold; |
| | | letter-spacing: 2px; |
| | | line-height: 1; |
| | | margin: 1em; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | @media screen and (min-width: 961px), print { |
| | | .sidebar { |
| | | height: 100vh; |
| | | display: flex; |
| | | flex-direction: column; |
| | | position: fixed; |
| | | width: $sidebar-width; |
| | | &__content { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | flex-grow: 1; |
| | | } |
| | | } |
| | | } |
| | | |
| | | @media (min-width: 1921px) { |
| | | .sidebar { |
| | | padding-left: 17%; |
| | | padding-right: 3%; |
| | | width: calc(var(--sidebar-width) - 20%); |
| | | } |
| | | } |
| | |
| | | |
| | | @media screen and (min-width: 961px), print { |
| | | .header { |
| | | border-bottom: 1px solid $primary-light; |
| | | border-bottom: $border; |
| | | } |
| | | } |
| | | @media screen and (max-width: 960px) { |
| New file |
| | |
| | | #TableOfContents { |
| | | display: block; |
| | | background: transparent; |
| | | } |
| | | |
| | | #TableOfContents ul { |
| | | list-style: none; |
| | | line-height: 1.9em; |
| | | margin: 0; |
| | | } |
| | | |
| | | #TableOfContents > ul { |
| | | padding-left: 0; |
| | | } |
| | | |
| | | #TableOfContents li a { |
| | | display: inherit; |
| | | color: var(--link-color); |
| | | } |
| | | |
| | | #TableOfContents li a:hover { |
| | | display: inherit; |
| | | } |