123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- /* 共通樣式 */
- :root {
- --main-color: cadetblue;
- }
- * {
- letter-spacing: 1px;
- font-weight: 300;
- font-family: "Noto Sans TC", sans-serif !important;
- }
- .navbar {
- background-color: var(--main-color) !important;
- .navbar-collapse {
- flex-grow: 0;
- }
- }
- p,
- li {
- line-height: 32px;
- }
- ul {
- list-style: none;
- }
- img {
- width: 100%;
- height: auto;
- }
- html,
- body {
- height: 100%;
- margin: 0;
- }
- body {
- display: flex;
- flex-direction: column;
- }
- .btn:focus,
- .form-control:focus {
- border-color: var(--main-color) !important;
- box-shadow: none !important;
- outline: 0 none !important;
- }
- .badge {
- font-weight: 400 !important;
- }
- .blog-post-tags {
- .badge {
- background-color: var(--main-color);
- &:hover {
- color: var(--main-color);
- background-color: #fff;
- border: 1px solid var(--main-color);
- }
- }
- }
- .blog-post-title {
- text-align: center;
- margin-bottom: 30px;
- a {
- font-weight: 500;
- }
- }
- .blog-post.content {
- h4 {
- font-size: 16px;
- font-weight: 300;
- line-height: 32px;
- a {
- padding: 5px 8px;
- margin-right: 3px;
- border: 1px solid #000;
- border-radius: 5px;
- font-size: 14px;
- &:hover {
- color: #fff !important;
- }
- }
- }
- .back-link {
- color: #000;
- display: block;
- text-align: center;
- text-decoration: none;
- transition: all 0.3s;
- &:hover {
- opacity: 0.7;
- }
- }
- }
- /* Sidebar */
- .search-btn {
- border: 1px solid var(--main-color) !important;
- svg {
- color: var(--main-color);
- }
- &:hover {
- background-color: var(--main-color) !important;
- svg {
- color: #fff;
- }
- }
- }
- .tags {
- margin: 0 5px 5px 0;
- padding: 7px 10px !important;
- font-size: 14px !important;
- font-weight: 400 !important;
- color: var(--main-color) !important;
- border: 1px solid var(--main-color) !important;
- &:hover {
- color: #fff !important;
- background-color: var(--main-color);
- }
- }
- .content-list {
- a {
- color: #000;
- text-decoration: none;
- transition: all 0.3s;
- &:hover {
- color: var(--main-color);
- }
- }
- h2 {
- font-size: 20px;
- }
- section {
- h4 {
- font-size: 14px;
- font-weight: 300;
- }
- h4:first-child {
- white-space: nowrap;
- }
- h4:last-child {
- width: 80%;
- }
- }
- }
- .list-unstyled {
- a {
- font-weight: 400;
- text-decoration: none;
- color: var(--main-color);
- transition: all 0.3s;
- &:hover {
- opacity: 0.7;
- }
- }
- }
- .pagination {
- justify-content: center;
- .page-link {
- color: var(--main-color);
- }
- .page-item.active .page-link {
- z-index: 3;
- color: #fff;
- background-color: var(--main-color);
- border-color: var(--main-color);
- }
- }
|