EH003/assets/stylesheets/template/modules/archives.scss

381 lines
6.8 KiB
SCSS
Executable File

@charset "utf-8";
@import "../initial";
//
// Widget
//
// Widget
// ## gerenral styles
.w-archive {
.w-archive__widget-title {
@extend .unity-title;
margin: 0.5rem 0;
}
.widget-title {
@extend .unity-title;
}
}
// Widget 1
.widget-archive-1 {
.w-archive__list.level-1 {
padding: 0.5rem;
}
.w-archive__item.level-1 {
list-style-position: inside;
margin-bottom: 0.8rem;
}
.w-archive__item-heading {
display: inline-block;
font-size: $w-item-heading-font-size;
font-family: $main-font;
color: $theme-gray;
margin: 0;
padding-bottom: 0.25rem;
}
.w-archive__list.level-2 {
margin: 0;
padding: 0;
}
.w-archive__item.level-2 {
border-bottom: 0.0625em dashed $w-border-color;
padding: 0 0 0.5rem 0.4rem;
}
.w-archive__link {
font-size: $w-title-font-size-small;
}
}
//Widget 2
.widget-archive-2 {
.panel-default > .panel-heading {
cursor: pointer;
padding: 0;
transition: all 0.5s;
-moz-transition: all 0.5s;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
&:hover {
background-color: darken($color: #f5f5f5, $amount: 10);
}
}
.panel {
font-family: $main-font;
margin-bottom: 0.625em;
}
.panel-title {
font-family: $main-font;
a {
display: block;
padding: 0.625em 0.9375em;
.fa { padding-right: 0.5em; }
}
}
}
//index setting
.i-archive-title {
border-bottom: 1px dashed #6f5c46;
border-top: 1px dashed #6f5c46;
box-sizing: border-box;
clear: both;
color: #6f5c46;
font-size: 1.05rem !important;
line-height: 40px;
font-family: $main-font;
margin: 0 0 10px;
padding: 0 0 0 10px;
}
.txt { background-color: #6dbb73; }
.xlsx { background-color: #bb6d7f; }
.pdf { background-color: #3b8347; }
.docx { background-color: #846dbb; }
.pptx { background-color: #6d77bb; }
.jpg { background-color: #bb6d6d; }
.zip { background-color: #dcb957; }
// Archive index 1
.index-archive-1 {
font-family: $main-font;
.i-archive__page-title {
border-bottom: 1px dashed #6f5c46;
border-top: 1px dashed #6f5c46;
box-sizing: border-box;
clear: both;
color: #6f5c46;
font-size: 1.05rem !important;
line-height: 40px;
font-family: $main-font;
margin: 0 0 10px;
padding: 0 0 0 10px;
}
.i-archive__archive-title {
}
.i-archive__status-wrap {
vertical-align: top;
display: inline-block;
margin-bottom: 0.625em;
}
.i-archive__item {
margin-bottom: 2.5em;
}
.i-archive__category-list {}
.i-archive__category-title {
padding-bottom: 0.3125em;
color: #6f5c46;
font-weight: bold;
}
.i-archive__category-item {
display: inline;
font-size: 0.8125rem;
font-weight: normal;
}
.i-archive__file-list {
display: block;
margin-bottom: 0.8em;
}
.i-archive__file-wrap {
margin: 0;
padding: 0.2em 0;
&:before {
content: '';
font-weight: 900;
font-size: 1.2em;
padding: 0 0.5em;
}
}
.i-archive__file-name {
font-size: 0.750em;
font-size: 0.8rem;
}
}
.index-archive-4 {
dt.i-archive-item-list { display: none; }
dl.i-archive-files-list { padding: 0; }
@media (min-width: 768px) {
.dl-horizontal dd { margin-left: 0 !important; }
}
}
.index-archive-2,
.index-archive-4 {
.panel-default>.panel-heading {
cursor: pointer;
padding: 0;
transition: all 0.5s;
-moz-transition: all 0.5s;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
&:hover {
background-color: darken($color: #f5f5f5, $amount: 10);
}
}
.panel {
font-family: $main-font;
margin-bottom: 0.625em;
}
.panel-title {
font-family: $main-font;
a {
display: block;
padding: 0.625em 0.9375em;
.fa { padding-right: 0.5em; }
}
}
.i-archive-tags {
margin-bottom: 0;
}
.i-archive-files-item {
font-size: 0.9em;
font-family: $main-font;
}
.i-archive-files-list {
dd {
margin-bottom: 0.3em;
}
}
.i-archive-tag-name {
margin-bottom: 0.5em;
font-size: 0.9375rem;
display: inline-block;
}
@media screen and (min-width: $screen-sm) {
.dl-horizontal {
dt {
text-align: left;
}
}
.dl-horizontal dt { overflow: unset; white-space: unset; }
.dl-horizontal dd { margin-left: 1em; }
}
}
.has-archive-tab {
.i-tag__item {
display: none;
}
.tab-content--active {
display: block !important;
}
.i-archive__tag-name {
cursor: pointer;
}
}
.index-archive-3 {
.i-archive__page-title {
border-bottom: 1px dashed #6f5c46;
border-top: 1px dashed #6f5c46;
box-sizing: border-box;
clear: both;
color: #6f5c46;
font-size: 1.05rem !important;
line-height: 40px;
font-family: $main-font;
margin: 0 0 10px;
padding: 0 0 0 10px;
}
.i-archive__category-title {
padding-bottom: 0.3125em;
color: #6f5c46;
font-weight: bold;
}
.i-archive__file-wrap {
margin-bottom: 0.625em;
&:before {
content: '';
font-weight: 900;
font-size: 1.2em;
padding: 0 0.5em;
}
}
.i-archive__category-item {
margin-bottom: 0.5em;
}
.i-archive__category-title {
font-family: $main-font;
}
.i-archive__archive-title {
font-size: 0.938em;
}
.tab-content {
margin-bottom: 0.625em;
}
.i-archive__file-name {
font-size: 0.9em;
}
.i-archive__item-wrap {
font-family: $main-font;
}
}
.index-archive-5 {
.i-archive__category-title {
font-size: 1rem;
margin-bottom: 0.625em;
vertical-align: top;
display: none;
}
.i-items {
background: transparent;
border: transparent;
border-bottom: transparent;
}
.thead.row {
@extend .table-th;
@media (max-width: 767px) {
display: none;
}
}
.archive-items {
border-bottom: 1px solid #C2C0B4;
padding: 5px;
line-height: 2;
div:nth-child(1), div:nth-child(2) {
border-right: transparent;
}
}
}
.index-archive-6 {
.i-archive__category-title {
font-size: 1rem;
margin-bottom: 0.625em;
vertical-align: top;
}
.i-items {
background: transparent;
border-bottom: transparent;
}
.head {
padding: 0;
width: 70%;
float: left;
.i-archive__file { margin: 0; }
}
.i-archive__file-list {
padding: 0;
width: 30%;
float: right;
}
.file-item {
border-bottom: 1px solid #C2C0B4;
padding: 5px 6px;
}
.file-name {
border-bottom: 1px solid #C2C0B4;
padding: 5px 6px;
color: #616161;
.i-archive__file-name {
color: #616161;
font-size: 13px;
}
}
.date-thead, .date { display: none; }
.thead.row {
@extend .table-th;
@media (max-width: 767px) {
display: none;
}
}
.archive-items {
line-height: 2;
div:nth-child(1), div:nth-child(2) {
// border-right: 1px solid #333;
}
}
}