tablesin editor.scss
.table01 {
width: 100%;
border: {
top: 1px solid $gray2;
left: 1px solid $gray2;
right: 1px solid $gray2;
}
th,
td {
border-bottom: 1px solid $gray2;
font-size: 14px;
letter-spacing: 0.04em;
line-height: 2;
padding: 10px 20px;
@media only screen and (max-width: $screen-tb) {
font-size: 12px;
display: block;
width: 100% !important;
padding: 10px;
text-align: left !important;
}
}
th {
background: $gray4;
font-weight: 500;
&.required {
&:after {
content: "必須";
font: {
size: 12px;
weight: 500;
}
width: 50px;
line-height: 30px;
display: inline-block;
text-align: center;
color: $white;
border-radius: 6px;
background: $red3;
float: right;
}
}
}
}
.table02 {
width: 100%;
border: 1px solid $gray2;
th,
td {
font-size: 14px;
padding: 18px 20px;
letter-spacing: 0.04em;
line-height: 2;
border-bottom: 1px dotted $gray2;
@media only screen and (max-width: $screen-tb) {
font-size: 12px;
display: block;
padding: 10px;
width: 100% !important;
text-align: left !important;
}
}
th {
@media only screen and (max-width: $screen-tb) {
border-bottom: 1px dotted $gray2;
}
}
td {
@media only screen and (max-width: $screen-tb) {
border-bottom: 1px solid $gray2;
}
}
tr:last-child {
th,
td {
border-bottom: none;
}
@media only screen and (max-width: $screen-tb) {
th {
border-bottom: 1px dotted $gray2;
}
}
}
}@mixin table {
width: 100%;
th,
td {
line-height: 2;
padding: 7px 15px;
@media only screen and (max-width: $screen-tb) {
width: 100% !important;
display: block;
padding: 4px 13px;
line-height: 2.3;
}
}
}
.table01 {
@include table;
th {
background: #78be37;
color: #78be37;
border: 1px solid #fff;
}
td {
background: #fff;
border: {
right: 1px solid #78be37;
bottom: 1px solid #78be37;
}
}
th,
td {
vertical-align: middle;
text-align: center;
}
}
.table02 {
@include table;
border-bottom: 1px solid #ddd;
th {
background: #fef9bd;
}
td {
background: #fff;
}
th,
td {
border-top: 1px solid #ddd;
}
}