@charset "utf-8"; /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━ */ /* */ /* ● table.css */ /* 共通部品 */ /* ・テーブル */ /* */ /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━ */ /* table クラス名無し --------------------------------------------------- */ table{ margin: 2em auto; width: 100%; text-align: left; border-collapse: collapse; th, td{ padding: 0.75em 1.0rem; } tbody{ } } /* DefaultTable --------------------------------------------------- */ .DefaultTable, %DefaultTable{ margin: 2em auto; width: 100%; text-align: left; border-collapse: collapse; // background: #fff; border: 1px solid $main-color; caption{ padding: .25em 0; } thead{ th{ line-height: 1.125; padding: 0.75rem 0.5rem; border-right: 1px dotted $main-color; text-align: center; overflow: hidden; white-space: nowrap; font-size: $font-size-s; color: #fff; background: $base-color; } } th, td{ padding: 1.25rem 1.0rem; border-top: 1px solid $main-color; border-bottom: 1px solid $main-color; border-right: 1px dotted $main-color; border-left: 1px dotted $main-color; font-weight: normal; &.PaddingNone{ padding: 0; /* - - TextList の余白を上書き - - */ ul.TextList{ > li{ .Label{ span.Sub{ margin-top: 0rem; } } & > a{ // padding-top: 0.75em; // padding-bottom: 0.75em; padding-top: 0.25em; padding-bottom: 0.25em; } } } } } th{ } &.AutoWidth{ @include media-query(over-bp-m) { width: auto; } } &.PaddingNone td{ padding: 0; } tbody{ th{ //color: #555; font-weight: 600; // background: #f9f9f9; text-align: center; text-align: left; width: 25%; padding-left: 15px; padding-right: 15px; background: rgba($main-color, 0.125); } td{ @include media-query(under-bp-m) { font-size: $font-size-s; } } } tfoot{ th, td{ font-weight: 700; color: #555; padding: 0.75em 1.5rem; } th{ // background: $base-color; text-align: center; } td{ // background: lighten($base-color, 5%); } } } /* [カレンダー] テーブル --------------------------------------------------- */ .CalendarTable{ border-collapse: collapse; &, th, td{ border: 1px solid #ccc; } th, td{ } thead{ @include media-query(under-bp-m) { display: none; } th{ text-align: center; padding: 0.25em; // background: #f0f0f0; font-weight: 500; font-size: $font-size-s; @include media-query(over-bp-m) { width: calc(100% / 7); } } } tbody{ @include media-query(under-bp-m) { tr{ display: block; } td{ display: flex; align-items: flex-start; justify-content: flex-start; } td.empty{ display: none; } } td{ vertical-align: top; @include media-query(over-bp-m) { height: 5em; padding: 0.75em 0.5rem; } @include media-query(undr-bp-m) { padding: 0.5em; padding-left: 0; } .Day{ font-weight: 700; line-height: 1; font-size: 175%; font-family: 'Arial Narrow','Arial', sans-serif; margin: 0 0 0.25em; } &.Sun, &.Holiday{ .Day{ color: red; } } @include media-query(under-bp-m) { .Day{ font-size: 175%; padding-right: 2rem; position: relative; display: inline-block; text-align: right; width: 2em; white-space: nowrap; margin-bottom: 0; &::after{ display: inline-block; background: #000; font-size: 1.0rem; width: 1.6rem; line-height: 1.6rem; vertical-align: middle; text-align: center; color: white; position: absolute; right: 0.25em; bottom: 0.25em; border-radius: 100%; } } &.Holiday{ .Day{ &::after{ background: red; } } } &.Sun{ .Day{ &::after{ content: "日"; background: red; } } } &.Mon{ .Day{ &::after{ content: "月"; } } } &.Tue{ .Day{ &::after{ content: "火"; } } } &.Wed{ .Day{ &::after{ content: "水"; } } } &.Thu{ .Day{ &::after{ content: "木"; } } } &.Fri{ .Day{ &::after{ content: "金"; } } } &.Sat{ .Day{ &::after{ content: "土"; } } } } .SknTplTextList{ .TextList{ @include media-query(under-bp-m) { border-left: 1px dotted #ccc; padding-left: 1rem; margin-left: 1rem; } li{ border: none; margin: 0.125em 0; &:first-child{ margin-top: 0; } &:last-child{ margin-bottom: 0; } a{ padding: 0.25rem 0.5rem; padding-left: 0; align-items: start; .Icon{ font-size: 1rem; &::before{ transform: scale(0.7); } } .Label{ font-weight: 400; font-size: 87.5%; flex-direction: row; align-items: center; flex-wrap: wrap; .Sub{ margin: 0 0 0 0.5em; } } } } } } } } }