event_news/app/assets/stylesheets/template/modules/event_news.scss

692 lines
12 KiB
SCSS

@charset "utf-8";
@import "../initial";
//
// Widget
//
// EventNews widget
// ## Gerneral styles for widgets
.w-event_news {
.w-event_news__widget-title {
@extend .unity-title;
}
.w-event_news__list {
margin: 0;
padding: 0;
list-style: none;
}
.w-event_news__item {
margin-bottom: 1.875em;
}
.label {
font-size: 0.75rem;
font-weight: normal;
}
.w-event_news__meta {
.w-event_news__status-wrap,
.w-event_news__postdate-wrap,
.w-event_news__category-wrap {
display: inline-block;
margin-right: 0.2em;
font-size: 0.8125em;
color: $theme-gray;
font-weight: normal;
}
i {
color: $theme-gray;
}
}
.w-event_news__subtitle {
font-size: 0.8125em;
color: $theme-gray;
}
.w-event_news__entry-title {
margin-bottom: 0.625em;
}
.w-event_news__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-event_news-1 {
.w-event_news__img-wrap {
height: 12.5em;
margin: 0 0 1em 0;
}
.w-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-2
.widget-event_news-2 {
.w-event_news__img-wrap {
height: 12.5em;
margin: 0 0 1em 0;
}
.w-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-3
.widget-event_news-3 {
.w-event_news__img-wrap {
height: 12.5em;
margin: 0 0 1em 0;
}
.w-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
}
// Widget-4
.widget-event_news-4 {
.w-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.w-event_news__list > .w-event_news__item:nth-child(3n+1) {
clear: both;
}
.w-event_news__img-wrap {
height: 12.5em;
margin: 0 0 1em 0;
}
}
// Widget-5
.widget-event_news-5 {
.w-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.w-event_news__item {
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
padding-bottom: 1em;
margin-bottom: 1em;
}
}
// Widget-6
.widget-event_news-6 {
.w-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-event_news__entry-title {
margin: 0;
}
.w-event_news__category-wrap,
.w-event_news__status,
.w-event_news__title,
.w-event_news__postdate-wrap {
font-size: 0.8125rem;
}
.w-event_news__status {
display: inline-block;
}
}
// Widget-7
.widget-event_news-7 {
.w-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-event_news__entry-title {
margin: 0;
}
.w-event_news__category-wrap,
.w-event_news__status,
.w-event_news__title,
.w-event_news__postdate-wrap {
font-size: 0.75rem;
}
.w-event_news__status {
display: inline-block;
}
}
// ## Gerneral styles for table widgets
.w-event_news__postdate,
.w-event_news__category {
white-space: nowrap;
}
// Widget-8
// ## Table
.widget-event_news-8 {
.w-event_news__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-9
// ## Table
.widget-event_news-9 {
.w-event_news__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-10
.widget-event_news-10 {
.w-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-event_news__entry-title {
margin: 0;
}
.w-event_news__postdate-wrap {
font-size: 0.8125em;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Widget-11
.widget-event_news-11 {
.w-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-event_news__entry-title {
margin: 0;
}
.w-event_news__postdate-wrap {
font-size: 0.8125em;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Widget-12
// ## Table
.widget-event_news-12 {
.w-event_news__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-13
// ## Table
.widget-event_news-13 {
.w-event_news__th {
color: #fff;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
}
.w-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
td {
font-size: 0.8125em;
}
a:hover {
text-decoration: none;
}
}
// Widget-14
.widget-event_news-14 {
.w-event_news__list {
padding: 0 0.9375em;
}
.w-event_news__img-wrap {
height: 18.75em;
margin-bottom: 0.9375em;
@media (min-width: $screen-md) {
height: 12.5em;
margin-bottom: 0;
}
}
.w-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.w-event_news__entry-title {
margin: 0 0 0.625em 0;
@media (min-width: $screen-md) {
margin-bottom: 0;
}
}
.w-event_news__postdate-wrap {
font-size: 0.8125em;
}
.w-event_news__status {
display: inline-block;
}
.w-event_news__postdate {
font-size: 0.8125rem;
}
}
// EventNews index
// ## General style for index pages
.i-event_news {
.i-event_news__page-title {
@extend .unity-title;
}
.i-event_news__list {
margin: 0;
padding: 0;
list-style: none;
}
.i-event_news__widget-title {
@extend .unity-title;
}
.i-event_news__item {
margin-bottom: 1.875em;
}
.i-event_news__img {
width: 100%;
max-width: 100%;
height: auto;
}
.i-event_news__th {
color: $theme-white;
background: $theme-color-main;
font-size: 0.8125em;
border: none;
white-space: nowrap;
}
.i-event_news__postdate,
.i-event_news__category,
.i-event_news__view-count {
white-space: nowrap;
}
.i-event_news__status-wrap {
span {
display: inline-block;
padding: .2em .6em .3em;
&:last-child {
margin: 0 0.3125em 0.1875em 0;
display: inline-block;
}
}
}
td {
font-size: 0.8125rem;
}
.i-event_news__title:hover {
text-decoration: none;
}
.label {
font-size: 0.75rem;
font-weight: normal;
}
.i-event_news__meta {
.i-event_news__status-wrap,
.i-event_news__postdate-wrap,
.i-event_news__category-wrap {
display: inline-block;
margin-right: 0.2em;
font-size: 0.8125em;
color: $theme-gray;
font-weight: normal;
}
i {
color: $theme-gray;
}
}
.i-event_news__subtitle {
font-size: 0.8125em;
color: $theme-gray;
}
.i-event_news__entry-title {
margin-bottom: 0.625em;
}
.i-event_news__title {
font-family: $sub-font;
color: $theme-color-main;
text-decoration: none;
font-size: 0.8125rem;
&:hover {
color: darken($theme-color-main, 10%);
}
}
}
// Index-1
.index-event_news-1 {}
// Index-5
// Index-6
.index-event_news-5,
.index-event_news-6 {
.i-event_news__img-wrap {
margin: 0 0 1em;
}
.i-event_news__title {
font-family: $main-font;
font-size: 1.2rem;
line-height: 1.3;
}
}
// Index-7
.index-event_news-7 {
.i-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.i-event_news__list > .i-event_news__item:nth-child(3n+1) {
clear: both;
}
.i-event_news__img-wrap {
height: 12.5em;
margin: 0 0 1em 0;
}
}
// Index-8
.index-event_news-8 {
.i-event_news__title {
font-family: $main-font;
line-height: 1.3;
font-size: 1.2rem;
}
.i-event_news__item {
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
padding-bottom: 1em;
margin-bottom: 1em;
}
}
// Index-9
// Index-10
.index-event_news-9,
.index-event_news-10 {
.i-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.i-event_news__entry-title {
margin: 0;
}
.i-event_news__category-wrap,
.i-event_news__status,
.i-event_news__title,
.i-event_news__postdate-wrap {
font-size: 0.8125rem;
}
.i-event_news__status {
display: inline-block;
}
}
// Index-11
// Index-12
.index-event_news-11,
.index-event_news-12 {
.i-event_news__item {
margin-bottom: 0.8em;
padding-bottom: 0.8em;
border-bottom: 0.0625em dashed lighten($theme-gray, 65%);
}
.i-event_news__entry-title {
margin: 0;
}
.i-event_news__postdate-wrap {
font-size: 0.8125em;
}
.i-event_news__status {
display: inline-block;
font-size: 0.75rem;
}
}
// Index-16
.index-event_news-16 {
td ul {
margin: 0;
padding: 0;
list-style: none;
}
}
// EventNews show
.s-event_news {
.s-event_news__show-title {
@extend .unity-title;
}
.s-event_news__meta-wrap {
border-bottom: 0.0625em solid $theme-gray-light;
@include clearfix;
.s-event_news__meta--item {
font-size: 0.875rem;
margin-right: 1em;
margin-bottom: 0.6em;
float: left;
i {
color: darken($theme-gray-light, 10%);
}
}
.s-event_news__tag-wrap {
position: relative;
margin-right: 0;
padding-left: 1.6em;
clear: both;
float: none;
i {
position: absolute;
top: 0.4375em;
left: 0;
}
}
.s-event_news__tag-wrap {
.s-event_news__tag {
font-weight: normal;
}
}
}
.s-event_news__post-wrap {
@include clearfix;
margin-bottom: 2em;
}
.s-event_news__related-wrap {
padding-top: 1em;
border-top: 0.0625em dotted $theme-gray-light;
}
.s-event_news__related-file {
margin-bottom: 0.9375em;
}
.s-event_news__related-file,
.s-event_news__related-link {
padding-bottom: 0.375em;
padding-left: 1.6em;
i {
margin: 0.5em 0 0 -1.6em;
float: left;
color: darken($theme-gray-light, 10%);
}
}
.s-event_news__related-link-list,
.s-event_news__related-file-list {
display: inline-block;
}
.s-event_news__flie-title {
max-width: 9.375rem;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.s-event_news__social > * {
display: inline-block;
vertical-align: top;
}
.s-event_news__social .print-button {
color: #fff;
font-size: 0.688em;
border-radius: 0.25em;
padding: 0.125em 0.375em;
background-color: $theme-color-main;
}
.s-event_news__social .print-button:hover {
background-color: lighten($theme-color-main, 10%);
}
}