D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
public_html
/
assets
/
css
/
Filename :
blog.css
back
Copy
// TODO: // - vars for consistent font sizing // - nav cleanup and responsive fixes // - footer social // fonts - TODO: loads of fonts being loaded here @import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,700i,900,900i'); // ===== VARS ===== // $skewDegree: 23deg; // ===== MAPS ===== // $brandColors: ( blue: #26A3FF, yellow: #FFE822, grey: #91A8BD, black: #242A31, pink: #FF268E ); // ===== Z-INDEX ===== // $z-index: ( navigation: 13000, navigationBar: 12000, navigationList: 11000, navigationBackdrop: 10000, modal : 9000, overlay : 8000, dropdown : 7000, header : 6000, footer : 5000 ); @function z-index($key) { @return map-get($z-index, $key); } @mixin z-index($key) { z-index: z-index($key); } // general html { color: map-get($brandColors, black); background: #fff; font-family: 'Lato', sans-serif; line-height: 1.4; box-sizing: border-box; -webkit-text-size-adjust: 100%; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; font-size: 14px; } a { color: map-get($brandColors, blue); text-decoration-skip: ink; } // helper .center-xy { top: 50%; left: 50%; transform: translate(-50%,-50%); position: absolute; } .no-scroll { overflow: hidden; } .img-responsive { width: 100%; display: block; } .rounded-circle { border-radius: 100%; } .rounded-sm { border-radius: 6px; } .rounded-md { border-radius: 8px; } .rounded-lg { border-radius: 12px; } .spacer-y { margin-top: 30px; margin-bottom: 30px; } .skew { transform: skew($skewDegree); .unskew { transform: skew(-$skewDegree); } } // .main-container { margin-top: 50px; } // main posts .post { // max-width: 500px; margin: 0 auto; padding: 30px 0; border-bottom: 1px solid #ececec; &:last-of-type { padding-bottom: 0; border-bottom: none; } .post-meta--user { margin-bottom: 10px; display: flex; align-items: center; img, p { vertical-align: middle; display: inline; float: left; } img { width: 40px; } p { color: map-get($brandColors, grey); line-height: 1.3; margin: 0 0 0 10px; } a { display: inline-block; } } .post-meta--post { color: #fff; width: 100%; position: absolute; bottom: 0; .post-meta--item { padding: 12px 15px; } svg { display: inline-block; vertical-align: middle; } .post-comments{ float: left; .post-comments--counter { font-size: 12px; font-family: monospace; } } .post-share { float: right; } } .post-heading { font-size: 24px; line-height: 1.2; margin: 15px 0; a { color: inherit; text-decoration: none; } } .post-body { font-size: 16px; margin: 0; } } // sidebar .sidebar-container { margin: 30px 0; a { color: inherit; text-decoration: none; } .sidebar-heading-container { text-align: center; display: 0 block; } .sidebar-heading { font-size: 24px; text-align: center; margin: 0; position: relative; display: inline-block; &:before { content: ''; background: map-get($brandColors, yellow); width: 104%; height: 11px; margin-left: -2%; bottom: 5px; position: absolute; z-index: -1; opacity: 0.4; } } .post-sidebar { display: flex; align-items: end; margin: 30px 0; img { margin-right: 10px; } p { margin: 0; } .post-heading { font-weight: 800; } .post-date { color: map-get($brandColors, grey); } } } .post-related-container { padding: 30px 0; .post-related:not(:last-of-type) { margin-bottom: 30px; } .post-heading { font-size: 18px; margin: 10px 0 0; } } // image container .img-container { position: relative; overflow: hidden; .img-container-content { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.2)); width: 100%; height: 100%; top: 0; right: 0; position: absolute; } .btn-category { background: map-get($brandColors, yellow); font-size: 14px; font-weight: 600; margin-right: -10px; padding-right: 3px; right: 0; position: absolute; } } .btn { text-decoration: none; text-align: center; display: inline-block; span { padding: 8px 20px; display: block; } } .footer { padding: 15px 0; border-top: 1px solid #efefef; p { margin: 0; &:first-of-type { font-size: 18px; font-weight: 600; } &:last-of-type { color: map-get($brandColors, grey); } } } // curabites logo .cb-logo--elem { fill: map-get($brandColors, black); } // Custom SCSS version of 'SVG Icons' by svgicons.sparkk.fr $baseColor: currentColor; $baseSize: 1.5em; .svg-icon { width: $baseSize; height: $baseSize; path, polygon, rect { fill: $baseColor; } circle { stroke: $baseColor; stroke-width: 1; } } // ===== NAV ===== // .nav { width: 100%; height: 100%; @include z-index(navigation); } .nav-bar { color: #000; background: #fff; text-align:right; line-height: 1; vertical-align: middle; width: 100%; height: 50px; padding: 0 5px; border-bottom: 1px solid #e9e9e9; top: 0; position: fixed; display: table; @include z-index(navigationBar); } .nav-brand { top: 0; left: 0; right: 0; bottom: 0; position: absolute; width: 100px; height: 22px; margin: auto; display: block; .nav-logo { } } .nav-toggle { font-size: 20px; vertical-align: middle; margin-top: 5px; display: table-cell; cursor: pointer; float: right; } .navicon { padding: 9px 10px; cursor: pointer; position: relative; .navicon-line { background: map-get($brandColors, black); width: 22px; height: 2px; margin: 4px 0; border-radius: 1px; display: block; transition: all 0.2s ease; } } .nav-list { background: #f9f9f9; width: 100%; margin-top: 50px; top: 0; position: fixed; overflow-y: scroll; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; @include z-index(navigationList); ul { margin: 0; padding: 0; list-style-type: none; } li { display: block; vertical-align: middle; &:first-of-type, &:last-of-type{ margin-top: 10px; } &:hover { background: #f1f1f1; } } a { color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; padding: 12px 20px; display: block; } } .nav-backdrop { background: rgba(0, 0, 0, 0.7); width: 200%; height: 200%; position: fixed; @include z-index(navigationBackdrop); } .nav-search--form { font-size: 0; border-top: 1px solid #e9e9e9; background: #efefef; } .nav-search--search { font-size: 16px; background: transparent; vertical-align: middle; width: 100%; margin: 0; padding: 14px 46px 14px 14px; border: none; -webkit-appearance: none; display: inline-block; } .nav-search--btn { color: #fff; background: #FF268E url(http://www.clker.com/cliparts/v/C/2/9/I/6/search-icon-white-hi.png); background-size: 14px; background-repeat: no-repeat; background-position: center center; font-size: 14px; vertical-align: middle; width: 30px; height: 30px; right: 0; margin: 8px; position: absolute; border: none; border-radius: 100%; -webkit-appearance: none; display: inline-block; } // ===== MEDIA QUERIES ===== // @media screen and (max-width: 576px) { .nav { .container { padding: 0; } } } @media screen and (min-width: 576px) { .nav-toggle { display: none; } .nav-brand { right: auto; margin-left: 15px; .nav-logo { } } .nav-list { background-color: transparent; width: auto; margin-top: 0; right: 0; @include z-index(navigationBar); li { display: inline-block; &:first-of-type, &:last-of-type{ margin-top: 0; } } a { padding: 15px 10px; } } .nav-backdrop { display: none; } .nav-search--form { display: none; // TODO: temp } .footer { padding: 30px 0; } } @media screen and (min-width: 768px) { .post-related-container { .post-related{ margin-bottom: 0; } } }