/** * Site intro */ .introduction { margin-top: 5em; margin-bottom: 4em; text-align: center; @include media-query($on-mobile) { margin-bottom: 3em; } .introduction-image { width: 103px; height: 103px; user-select: none; border-radius: 100%; -ms-user-select: none; background: #d8deff; -webkit-user-select: none; border: 6px solid #eef1ff; animation: 0.5s ease-in forwards weeng; box-shadow: 0px 0px 2px 9px #f6f6fa; &::after { top: 0; left: 0; right: 0; bottom: 0; content: ""; position: absolute; background: transparent; } } .introduction-name { margin-top: 8px; font-size: 1.5em; font-weight: 600; font-family: $first-font-family; } .introduction-description { padding: 10px; margin: 0 auto; font-size: 16px; color: $gray; opacity: 0.9; max-width: 393px; font-family: $first-font-family; } } /** * Site navbar */ .navbar { height: auto; max-width: -webkit-calc(890px - (#{$spacing-unit} * 2)); max-width: calc(890px - (#{$spacing-unit} * 2)); position: relative; margin-right: auto; margin-left: auto; border-bottom: 1px solid $light; padding: $spacing-unit - 15px $spacing-unit; @extend %clearfix; } /** * Site nav */ .menu { .trigger { float: right; } .menu-trigger { display: none; } .menu-icon { display: none; } .menu-link { color: $black; font-family: $first-font-family; line-height: $base-line-height - 0.5; text-decoration: none; border-radius: 2px; padding: 5px 8px; border: 0; font-size: $small-font-size - 1; opacity: 0.7; letter-spacing: 0.5px; &:hover { opacity: 1; } &:not(:last-child) { margin-right: 5px; } @include media-query($on-mobile) { opacity: .8; } } .menu-link.active { opacity: 1; border-radius: 4em 1em 2em 1em / 1em 5em 1em 3em; color: $blue; background-color: $light; } @include media-query($on-mobile) { position: fixed; top: 0; left: 0; right: 0; z-index: 2; text-align: center; height: 50px; background: $white; border-bottom: 1px solid $light; label[for="nav-trigger"] { display: block; float: right; width: 36px; height: 36px; z-index: 2; cursor: pointer; } .menu-icon { display: block; position: absolute; right: 0; width: 50px; height: 20px; line-height: 0; padding-top: 15px; text-align: center; z-index: 10; >svg path { fill: $black; } } input[type="checkbox"]:not(:checked)~.trigger { clear: both; visibility: hidden; } input[type="checkbox"]:checked~.trigger { position: fixed; animation: 0.2s ease-in forwards weeng; display: flex; flex-direction: row; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.97); height: 100vh; width: 100%; top: 0; } .menu-link { display: block; box-sizing: border-box; font-size: 1em; &:not(:last-child) { margin-right: 0; margin-bottom: 5px; } } } } .post-header { font-size: 1.2em; font-family: $first-font-family; text-transform: capitalize; font-weight: 700; } .posts { padding-top: 5px; padding-bottom: 6px; display: flex; @extend %clearfix; &:not(:first-child) { border-top: 1px solid $light; } .posts-header { display: inline; line-height: 15px; } .posts-date { font-family: $first-font-family; font-size: 17px; min-width: 55px; color: $gray; padding-right: 10px; @include media-query($on-mobile) { font-size: 16px; } } .posts-title { margin-top: 2px; margin-bottom: 0; font-family: $second-font-family; font-weight: normal; font-size: 1em; display: inherit; a { color: $blue; text-decoration: none; line-height: 22px; &:hover, &focus { color: $black; } } } } /** * Animation */ @keyframes weeng { 0% { opacity: 0.2; } 100% { opacity: 1; } } /** * Responsive Embed : vidio */ .embed-responsive { height: 0; max-width: 100%; overflow: hidden; position: relative; padding-bottom: 56.25%; margin-top: 20px; iframe, object, embed { top: 0; left: 0; width: 100%; height: 100%; position: absolute; } } /** * Site footer */ .footer { color: $gray; margin-top: 8em; margin-bottom: 2em; text-align: center; font-size: $small-font-size; font-family: $first-font-family; @include media-query($on-mobile) { margin-top: 3em; } b:not(:last-child) { color: $black; } a { border: 0; color: $gray; &:hover, &:focus { border-bottom: 2px solid $blue; } } }