AsiaH7_2/assets/stylesheets/template/modules/announcement.scss

793 lines
12 KiB
SCSS

@charset "utf-8";
@import "../initial";
//
// Widget
//
// Announcement widget
// ## Gerneral styles for widgets
.w-annc {
.w-annc__widget-title {
@extend .unity-title;
}
.w-annc__list {
margin: 0;
padding: 0;
list-style: none;
}
.w-annc__item {
margin-bottom: 15px;
}
.label {
font-size: 0.75rem;
font-weight: normal;
padding: .2em .6em;
}
.w-annc__meta {
.w-annc__status-wrap,
.w-annc__postdate-wrap,
.w-annc__category-wrap {
display: inline-block;
margin-right: 0.2em;
font-size: 0.8125em;
color: $theme-gray;
font-weight: normal;
}
i {
color: $theme-gray;
}
}
.w-annc__subtitle {
font-size: 0.8125em;
line-height: 22px;
color: $theme-gray;
}
.w-annc__entry-title {
margin-bottom: 10px;
}
.w-annc__title {
font-family: $sub-font;
color: $theme-color-main;
text-decoration: none;
font-size: 0.8125rem;
&:hover {
color: darken($theme-color-main, 10%);
}
}
}
// Widget-1
.widget-announcement-1 {
.w-annc__img-wrap {
height: 200px;
margin: 0 0 1em 0;
}
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-2
.widget-announcement-2 {
.w-annc__img-wrap {
height: 200px;
margin: 0 0 1em 0;
}
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-3
.widget-announcement-3 {
.w-annc__img-wrap {
height: 200px;
margin: 0 0 1em 0;
}
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-4
.widget-announcement-4 {
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.w-annc__list > .w-annc__item:nth-child(3n+1) {
clear: both;
}
.w-annc__img-wrap {
height: 200px;
margin: 0 0 1em 0;
}
}
// Widget-5
.widget-announcement-5 {
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 13px;
}
.w-annc__item {
border-bottom: 1px solid #cccccc;
padding-bottom: 0;
margin-bottom: 0;
p{
font-size: 13px;
}
}
}
// Widget-6
.widget-announcement-6 {
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
margin: 0;
}
.w-annc__category-wrap,
.w-annc__status,
.w-annc__title,
.w-annc__postdate-wrap {
font-size: 0.8125rem;
}
.w-annc__status {
display: inline-block;
}
}
// Widget-7
.widget-announcement-7 {
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
margin: 0;
}
.w-annc__category-wrap,
.w-annc__status,
.w-annc__title,
.w-annc__postdate-wrap {
font-size: 0.75rem;
}
.w-annc__status {
display: inline-block;
}
}
// ## Gerneral styles for table widgets
.w-annc__postdate,
.w-annc__category {
white-space: nowrap;
}
// Widget-8
// ## Table
.widget-announcement-8 {
.w-annc__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-9
// ## Table
.widget-announcement-9 {
.w-annc__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-10
.widget-announcement-10 {
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
margin: 0;
}
.w-annc__postdate-wrap {
font-size: 0.8125em;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Widget-11
.widget-announcement-11 {
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
margin: 0;
}
.w-annc__postdate-wrap {
font-size: 0.8125em;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Widget-12
// ## Table
.widget-announcement-12 {
.w-annc__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-13
// ## Table
.widget-announcement-13 {
.w-annc__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-annc__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-14
.widget-announcement-14 {
.w-annc__list {
padding: 0 15px;
}
.w-annc__img-wrap {
height: 300px;
margin-bottom: 15px;
@media (min-width: $screen-md) {
height: 200px;
margin-bottom: 0;
}
}
.w-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.w-annc__entry-title {
margin: 0 0 10px 0;
@media (min-width: $screen-md) {
margin-bottom: 0;
}
}
.w-annc__postdate-wrap {
font-size: 0.8125em;
}
.w-annc__status {
display: inline-block;
}
.w-annc__postdate {
font-size: 0.8125rem;
}
}
// Widget-15
.widget-announcement-15 {
.w-annc__img-wrap {
margin: 0;
text-align: center;
img.w-annc__img{
border: 5px solid #ddd;
border-radius: 50%;
@media (max-width: $screen-xs){
max-width: 290px;
}
}
}
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.w-annc__item{
margin-bottom: 0;
}
p.w-annc__subtitle{
font-size: $font-15;
line-height: 1.6;
font-family: $main-font;
}
.w-annc__more-wrap{
a.btn-primary{
color: #000;
border-color: transparent;
background-color: transparent;
position: relative;
z-index: 1;
&:hover{
text-decoration:underline;
border-color: transparent;
background-color: transparent;
}
.fa{
padding-left: 6px;
}
}
}
}
// Widget-16
.widget-announcement-16 {
.w-annc__item{
margin-bottom: 0;
padding-bottom: 20px;
p {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.w-annc__img-wrap {
}
h4.w-annc__entry-title{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.w-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 20px;
color: #453839;
}
}
.w-annc__meta{ /*date*/
text-align: center;
.w-annc__postdate-wrap{
font-size: 18px;
color: #fff;
padding: 10px 13px;
background-color: #cca129;
margin-right: 0;
line-height: 1;
}
}
}
// Announcement index
// ## General style for index pages
.i-annc {
.i-annc__page-title {
@extend .unity-title;
}
.i-annc__list {
margin: 0;
padding: 0;
list-style: none;
}
.i-annc__widget-title {
@extend .unity-title;
}
.i-annc__item {
margin-bottom: 30px;
}
.i-annc__img {
width: 100%;
max-width: 100%;
height: auto;
}
.i-annc__th {
color: $theme-white;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
white-space: nowrap;
}
.i-annc__postdate,
.i-annc__category,
.i-annc__view-count {
white-space: nowrap;
}
.i-annc__status-wrap {
span {
display: inline-block;
padding: .2em .6em .3em;
&:last-child {
margin: 0 5px 3px 0;
display: inline-block;
}
}
}
td {
font-size: 0.8125rem;
}
.i-annc__title:hover {
text-decoration: none;
}
.label {
font-size: 0.75rem;
font-weight: normal;
}
.i-annc__meta {
.i-annc__status-wrap,
.i-annc__postdate-wrap,
.i-annc__category-wrap {
display: inline-block;
margin-right: 0.2em;
font-size: 0.8125em;
color: $theme-gray;
font-weight: normal;
}
i {
color: $theme-gray;
}
}
.i-annc__subtitle {
font-size: 0.8125em;
color: $theme-gray;
}
.i-annc__entry-title {
margin-bottom: 10px;
}
.i-annc__title {
font-family: $sub-font;
color: #474747;
text-decoration: none;
font-size: 0.8125rem;
&:hover {
color: darken($theme-color-main, 10%);
}
}
}
// Index-1
.index-announcement-1 {}
// Index-5
// Index-6
.index-announcement-5,
.index-announcement-6 {
.i-annc__img-wrap {
margin: 0 0 1em;
}
.i-annc__title {
font-family: $main-font;
font-size: 1.2rem;
line-height: 1.3;
}
}
// Index-7
.index-announcement-7 {
.i-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.i-annc__list > .i-annc__item:nth-child(3n+1) {
clear: both;
}
.i-annc__img-wrap {
height: 200px;
margin: 0 0 1em 0;
}
}
// Index-8
.index-announcement-8 {
.i-annc__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.i-annc__item {
border-bottom: 1px dashed lighten($theme-gray, 65%);
padding-bottom: 1em;
margin-bottom: 1em;
}
}
// Index-9
// Index-10
.index-announcement-9,
.index-announcement-10 {
.i-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.i-annc__entry-title {
margin: 0;
}
.i-annc__category-wrap,
.i-annc__status,
.i-annc__title,
.i-annc__postdate-wrap {
font-size: 0.8125rem;
}
.i-annc__status {
display: inline-block;
}
}
// Index-11
// Index-12
.index-announcement-11,
.index-announcement-12 {
.i-annc__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 1px dashed lighten($theme-gray, 65%);
}
.i-annc__entry-title {
margin: 0;
}
.i-annc__postdate-wrap {
font-size: 0.8125em;
}
.i-annc__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Index-16
.index-announcement-16 {
td ul {
margin: 0;
padding: 0;
list-style: none;
}
}
// Announcement show
.s-annc {
.s-annc__show-title {
@extend .unity-title;
}
.s-annc__meta-wrap {
border-bottom: 1px solid $theme-gray-light;
@include clearfix;
.s-annc__meta--item {
font-size: 0.875rem;
margin-right: 1em;
margin-bottom: 0.6em;
float: left;
i {
color: darken($theme-gray-light, 10%);
}
}
.s-annc__tag-wrap {
position: relative;
margin-right: 0;
padding-left: 1.6em;
clear: both;
float: none;
i {
position: absolute;
top: 7px;
left: 0;
}
}
.s-annc__tag-wrap {
.s-annc__tag {
font-weight: normal;
}
}
}
.s-annc__post-wrap {
@include clearfix;
margin-bottom: 2em;
}
.s-annc__related-wrap {
padding-top: 1em;
border-top: 1px dotted $theme-gray-light;
}
.s-annc__related-file {
margin-bottom: 15px;
}
.s-annc__related-file,
.s-annc__related-link {
padding-bottom: 6px;
padding-left: 1.6em;
i {
margin: 8px 0 0 -1.6em;
float: left;
color: darken($theme-gray-light, 10%);
}
}
.s-annc__related-link-list,
.s-annc__related-file-list {
display: inline-block;
}
.s-annc__flie-title {
max-width: 9.375rem;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.s-annc__social > * {
display: inline-block;
vertical-align: top;
}
.s-annc__social .print-button {
color: #fff;
font-size: 11px;
border-radius: 4px;
padding: 2px 6px;
background-color: $theme-color-main;
}
.s-annc__social .print-button:hover {
background-color: lighten($theme-color-main, 10%);
}
}