@charset "utf-8"; @import url(http://fonts.googleapis.com/css?family=Maven+Pro); @import url(http://fonts.googleapis.com/css?family=Roboto); // Font stacks $main-font: "Maven Pro", "微軟正黑體" sans-serif; $paragraph-font: "Roboto", "微軟正黑體", sans-serif; $gray: #f3f3f3; $dark-gray: #aaaaaa; $light-gray: #cdcdcd; $white: white; $light-black: #353535; $black: black; $green: #4ad976; $blue: #4171d5; $red: #c71932; $blue-green: #00acee; $group-page-bar-color: #171717; // Transition units $fast: 0.3s; $normal: 0.6s; $slow: 1s; // Border radius units $general: 0.25rem; // General style body { background: $gray; } *, *:before, *:after { box-sizing: border-box; } img { width: 100%; max-width: 100%; height: auto; } a { text-decoration: none; } a:hover, a:visited { text-decoration: none; } // General classes .screen-reader { position: absolute; top: -9999px; left: -9999px; } // Buttons .button { padding: 8px .75rem; color: $black; border: none; border-radius: 15rem; background: $gray; } .button-default { color: $blue; background-color: transparent; border: 2px solid $blue; transition: $fast all; &:hover { color: $white; background-color: $blue; } } .button-activated { color: #fff; background-color: $green; } .button-primary { color: $white; background-color: $blue; transition: $fast all; &:hover { color: $white; background-color: lighten($blue, 5%); } } // Button group .button-group { display: inline-block; list-style: none; > .button-group-common { display: inline-block; } > .button:first-child { border-radius: 15rem 0 0 15rem; margin-right: -4px; } > .button:last-child { border-radius: 0 15rem 15rem 0; } li { color: $blue; background-color: rgba($white, 0.2); &:hover { a { color: $white; } } } > .active { color: $white; background-color: $blue; a { color: $white; } } } // Tool Tip .tool-tip-parent { position: relative; &:hover { .tool-tip { display: block; } } } .tool-tip { padding: 10px 0.75rem; border-radius: .2rem; color: $white; background: rgba($black, 0.85); position: absolute; left: 0; bottom: 100%; z-index: 150; &:after { border: 5px solid transparent; border-top-color: rgba($black, 0.85); content: ""; position: absolute; left: 10px; bottom: -10px; } } .topnav { display: none; } // Group page #main-wrap { padding-top: 0; } .group-page-banner-wrap { height: 280px; overflow: hidden; position: fixed; top: 0; left: 0; width: 100%; transition: $fast all; z-index: 500; } .group-page-banner-image-wrap { background-color: $black; text-align: center; } .group-page-view-switch { position: absolute; top: 4rem; right: 2rem; } .group-page-banner-image { width: auto; max-width: 100%; height: auto; } .group-page-bar { padding: 0 2rem 0 6rem; text-align: center; background: rgba($group-page-bar-color, 0.95); width: 100%; position: absolute; left: 0; bottom: 0; } .group-page-title { margin-bottom: 12px; padding: 6px 0; color: $white; font-family: $main-font; font-weight: normal; } .group-page-new-post { float: right; margin: 18px 0 0 0; } .group-page-section { overflow: hidden; max-width: 1350px; margin: auto; padding: 300px 2rem 30px; } .gorup-page-info-wrap { font-size: .9rem; padding: 6px 1rem; display: block; float: right; cursor: pointer; } .group-page-description-wrap { clear: both; } .gorup-page-info-wrap { margin-bottom: 10px; text-align: right; } .group-page-status-wrap { font-size: .75rem; float: right; padding: 2px 0.5rem; margin-bottom: 10px; } .group-page-status-wrap.close-eye { margin-left: 5px; background: $red; } .group-page-description-wrap { margin-bottom: 15px; padding: 16px 1.2rem 16px; border-radius: .2rem; box-shadow: inset 0 0 8px $dark-gray; } .group-page-description { clear: both; text-align: justify; } .group-page-post { clear: both; overflow: hidden; margin-bottom: 40px; padding: 28px 1.5rem; text-align: center; border-radius: $general; background: $white; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2); } .group-page-post-link { text-decoration: none; color: $black; } .group-page-post:hover { box-shadow: 0 1px 25px 0 rgba(0, 0, 0, 0.2); } .group-page-post-link:hover { text-decoration: none; color: $black; } .group-page-post-image-wrap { display: inline-block; margin-bottom: 12px; } .group-page-post-image { width: 100%; max-width: 100%; height: auto; margin-top: 12px; border: 2px solid $gray; border-radius: $general; } .group-page-post-content { margin-bottom: .5rem; color: $dark-gray; } .group-page-post-title { font-size: 1.5rem; font-weight: normal; line-height: 1; margin-bottom: 12px; color: $light-black; font-family: $paragraph-font; } .group-page-post-meta-wrap { color: $dark-gray; } .group-page-post-author, .group-page-post-postdate { margin-right: .5rem; } .group-page-seen-by { display: inline-block; } // scroll view .group-page.scroll { padding-top: 7rem; .group-page-banner-wrap { height: 120px; } .group-page-banner-image-wrap {} .group-page-title { margin-bottom: 0; font-size: 1.625rem; line-height: 50px; } .group-page-new-post { margin-top: 9px; padding: 6px 10px; } .group-page-new-post { display: inline-block; vertical-align: top; } .group-page-view-switch { position: static; display: inline-block; margin: 6px .5rem 0 0; display: none; } .group-page-view-switch { margin: 6px .5rem 0 0; } .group-page-section { padding-top: 60px; } .group-page-bar {} .btn { padding: 2px 5px; } } .group-page li a { text-decoration: none; } .group-page-switch-btn { color: $blue; &:hover { color: $white; } } /* 600px */ @media screen and (min-width: 37.5rem) { .group-page-post { margin-bottom: 35px; text-align: left; } .group-page-post-image-wrap { float: left; width: 12%; min-width: 100px; margin-right: 4%; max-height: 140px; overflow: hidden; } .group-page-post-content-wrap { float: left; width: 70%; font-family: $paragraph-font; } } /* 760px */ @media screen and (min-width: 47.5rem) { .group-page-post-content-wrap { width: 70%; } .group-page-bar { text-align: left; } .group-page-title { display: inline-block; margin: 0; padding: 0; line-height: 70px; transition: .6s all; } .group-page-new-post {} .group-page-view-switch { float: right; } } // 900px @media screen and (min-width: 56.25rem) { .group-page-post-content-wrap { width: 80%; } } // Group post .group-post { width: 980px; margin: auto; } .group-post-meta { margin-bottom: 15px; } .group-post-title { font-family: $main-font; float: left; width: 90%; } .group-post-avatar-wrap { float: right; padding: 20px 0.375rem 0 0; } .group-post-avatar-username-toggle { display: block; } .group-post-avatar { width: 60px; height: 60px; border-radius: 50%; } .group-post-username { display: none; top: 100%; padding-bottom: 30px; right: 0; left: auto; white-space: nowrap; &:after { border-top-color: transparent; border-bottom-color: rgba(0, 0, 0, 0.85); top: -10px; left: auto; right: 20px; bottom: auto; } } .group-post-postdate { display: inline-block; margin-right: 1rem; clear: both; } .group-post-image-wrap { position: relative; background: $black; &:hover { .cycle-nav { opacity: 1; } .group-post-cycle-prev { left: 2rem; } .group-post-cycle-next { right: 2rem; } } } .group-post-image-list { margin: 0; padding: 0; list-style: none; } .cycle-nav { font-size: 1.2rem; position: absolute; top: 50%; margin-top: -1.25rem; line-height: 1.5rem; color: $white; z-index: 500; width: 2.5rem; height: 2.5rem; cursor: pointer; -webkit-transition: $normal all; transition: $normal all; text-align: center; background-color: rgba($black, 0.8); border-radius: 50%; opacity: 0; &:hover { background-color: $blue; } .group-post-cycle-nav-icon { line-height: 2.6rem; } } .group-post-cycle-prev { left: 0; } .group-post-cycle-next { right: 0; } .group-post-content { font-family: $main-font; font-size: .8125rem; margin: 15px 0; } .group-post-attachment-wrap { float: left; width: 90%; } .group-post-attachment-icon { font-size: 1rem; padding: 6px 4px 0 0; float: left; } .group-post-attachments { display: inline-block; padding-left: 0.5rem; float: left; width: 95%; a { margin-bottom: 10px; } } .group-post-seen-by { float: right; cursor: pointer; &:hover { .group-post-seen-by-names { display: block; } } .group-post-seen-by-name { display: block; color: #fff; } } .group-post-seen-by-lead { margin-right: 4px; } .group-post-seen-by-names { display: none; } .comments { clear: both; } .group-post-respond-comment { width: 100%; } .group-post-comment-list { margin: 0; padding: 0; list-style: none; } .group-post-comment-wrap { overflow: hidden; margin-bottom: 25px; padding-bottom: 8px; border-bottom: 1px solid $light-gray; } .group-post-comment-avatar { float: left; width: 8%; img { width: 60px; height: 60px; border-radius: 50%; } } .group-post-comment-author { font-size: .9375rem; } .group-post-comment-body { float: left; width: 80%; }