MOFA/components/list_section/list_section.css
2024-11-04 02:41:49 +09:00

395 lines
14 KiB
CSS

.list-section {
--border-color: #A9A9A9;
--first-icon: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.2 8.29996L12 12.5L16.2 16.7' stroke='%233366FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 7L8 18' stroke='%233366FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A");
--prev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'%3E%3Cpath d='M13.8 8.29996L9.60001 12.5L13.8 16.7' stroke='%233366FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
.full-width {
width: 100%;
}
.list-count {
display: flex;
gap: 4px;
margin-left: 8px;
p {
font-size: 1.25em;
line-height: 1.1935em;
}
b {
font-size: 1.25em;
line-height: 1.1935em;
color: #3366FF;
}
}
.list-wrap {
border-radius: 16px;
box-shadow: 0 0 0 1px var(--border-color);
margin-top: 16px;
>div {
>div {
padding: 40px 0;
margin: 0 40px;
box-shadow: 0 1px 0 0 #DDDDDD;
&:last-of-type {
box-shadow: initial;
}
>.list-category {
display: inline-block;
font-weight: 700;
line-height: 1.4em;
color: #3366FF;
border-bottom: 2px solid #3366FF;
padding-bottom: 2px;
margin-bottom: 12px;
&.green {
color: #04AA04;
border-bottom: 2px solid #04AA04;
}
&.violet {
color: #9835DA;
border-bottom: 2px solid #9835DA;
}
&.orange {
color: #F18744;
border-bottom: 2px solid #F18744;
}
&.red {
color: #D01C64;
border-bottom: 2px solid #D01C64;
}
&.garsian {
color: #0D98A1;
border-bottom: 2px solid #0D98A1;
}
}
}
}
.writer {
display: flex;
gap: 20px;
p {
&:first-of-type {
position: relative;
overflow: initial;
&:before {
content: '';
width: 1px;
height: 12px;
background-color: #666666;
display: block;
position: absolute;
right: -10px;
bottom: 4px;
}
}
}
}
.list-action {
padding: 40px 0;
box-shadow: 0 -1px 0 0 #DCDCDC;
.list-more {
padding: 16px 56px;
font-size: 1.25em;
line-height: 1.4em;
}
}
table {
margin-top: 40px;
margin-left: 40px;
margin-right: 40px;
border-collapse: collapse;
thead {
tr {
th {
font-size: 20px;
font-weight: 500;
line-height: 28px;
text-align: center;
height: 48px;
border-bottom: 1px solid #999999;
}
}
}
tbody {
tr {
transition: background-color ease 0.2s;
position: relative;
vertical-align: text-top;
td {
text-align: center;
padding: 18px 0;
font-size: 20px;
font-weight: 400;
line-height: 28px;
border-bottom: 1px solid #F0F0F0;
color: #444;
div {
font-size: inherit;
font-weight: inherit;
color: inherit;
p {
font-size: inherit;
font-weight: inherit;
color: inherit;
}
}
&[title] {
text-align: left;
cursor: pointer;
}
position: relative;
}
&:hover {
background-color: #EDF1FF;
transition: background-color ease 0.2s;
td {
&[title],
&[author] {
color: #3366FF;
font-weight: 700;
}
}
}
details {
font-size: inherit;
font-weight: inherit;
color: inherit;
summary {
font-size: inherit;
font-weight: inherit;
color: inherit;
list-style-type: none;
}
}
&[open] {
height: calc(71px + 140px + 81px);
vertical-align: text-top;
td {
position: initial;
details {
width: 100%;
>div {
background-color: #fff;
border-top: 1px solid #eee;
left: 0;
top: 71px;
padding: 20px 0 16px 0;
cursor: text;
border-bottom: 1px solid #eee;
>div {
&:first-of-type {
padding-left: 24px;
padding-right: 24px;
padding-bottom: 20px;
p {
font-size: 18px;
font-weight: 400;
line-height: 25.2px;
color: #444444;
}
}
&:last-of-type {
&[row] {
border-top: 1px solid #F0F0F0;
div {
padding-top: 16px;
&:first-of-type {
padding-left: 24px;
flex: 1 1 auto;
select {
width: 100%;
padding-left: 16px;
appearance: none;
-webkit-appearance: none;
font-size: 18px;
background-color: #FFFFFF;
border: 0;
border-radius: 4px;
box-shadow: 0 0 0 1px #BDBDBD;
color: #444;
cursor: pointer;
outline: none;
height: 49px;
background-image: var(--select-icon-caret);
background-repeat: no-repeat;
background-position-y: center;
background-position-x: calc(100% - 16px);
}
}
&:last-of-type {
padding-right: 20px;
}
}
}
&[col] {
padding-left: 24px;
padding-top: 20px;
border-top: 1px solid #F0F0F0;
div {
&:first-of-type {
align-items: center;
p {
&:first-of-type {
font-size: 18px;
font-weight: 700;
line-height: 25.2px;
color: #222222;
}
&:last-of-type {
font-size: 16px;
font-weight: 400;
line-height: 22.4px;
color: #999999;
}
}
}
&:last-of-type {
p {
font-size: 18px;
font-weight: 400;
line-height: 25.2px;
color: #444;
}
}
}
}
}
}
}
}
}
}
}
}
}
.table-action {
position: relative;
button {
position: absolute;
right: 40px;
top: 20px;
}
}
.table-nav {
padding: 40px;
align-items: center;
justify-content: center;
button {
cursor: pointer;
padding: 8px;
font-size: 0;
width: 24px;
height: 24px;
display: block;
background-repeat: no-repeat;
background-position: center center;
&.btn-first {
background-image: var(--first-icon);
}
&.btn-prev {
background-image: var(--prev-icon);
}
&.btn-last {
background-image: var(--first-icon);
rotate: 180deg;
}
&.btn-next {
background-image: var(--prev-icon);
rotate: 180deg;
}
}
a {
font-size: 18px;
font-weight: 400;
line-height: 25.2px;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
&[data-current="true"] {
border-radius: 100%;
background: #3366FF26;
color: #3366FF;
}
}
}
}
}