.introduction { display: flex; flex-wrap: nowrap; .introduction-menu { user-select: none; flex: 0 0 252px; background: #edeff3; margin-right: 3%; .menu-title { input[type='checkbox'] { display: none; } label { display: block; color: #4f4f4f; font-size: 16px; cursor: pointer; height: 50px; line-height: 50px; border-bottom: 1px solid #ffffff; padding-left: 5%; box-sizing: border-box; margin: 0; text-overflow: ellipsis; overflow: hidden; max-width: 250px; white-space: nowrap; &::before { content: ''; display: inline-block; width: 6px; height: 6px; border-bottom: 2px solid #4f4f4f; transform: translateY(-5px) translateX(5px); margin-right: 12px; border-right: 2px solid #4f4f4f; transform: translateY(-2px) translateX(3px) rotate(-45deg); transition: all 0.2s; } &:hover { font-weight: bold; } } input[type='checkbox']:checked ~ label { font-weight: bold; &::before { transform: translateY(-2px) translateX(3px) rotate(45deg); } } ul { list-style: none; padding: 0; margin: 0; div { height: 0; overflow: hidden; } li { height: 0; width: 252px; padding-left: 30px; overflow: hidden; font-size: 14px; transition: all 0.2s; border-bottom: 0px solid transparent; cursor: pointer; box-sizing: border-box; text-overflow: ellipsis; white-space: nowrap; line-height: 50px; &:hover { color: #2071f4; &::before { border-color: #2071f4; } } &.active { color: #2071f4; background: #fff; border-left: 10px solid #2071f4; padding-left: 20px; &::before { border-color: #2071f4; } } &::before { content: ''; width: 6px; height: 6px; border: 1px solid #4f4f4f; border-radius: 50%; display: inline-block; margin-right: 8px; transform: translateY(-1px); } &.items { cursor: default; &::before { height: 1px; transform: translateY(-4px); } } } ul > li { width: 242px; } input[type='checkbox']:not(checked) ~ ul > li { height: 0; } input[type='checkbox']:checked ~ ul { li { height: 50px; border-bottom: 1px solid #ffffff; } } label { font-size: 14px; padding-left: 25px; } } & > input[type='checkbox']:checked ~ ul { & > li { height: 50px; border-bottom: 1px solid #ffffff; } div { height: auto; } } } } .introduction-content { flex: 1; .introduction-title { font-size: 30px; font-weight: bold; border-bottom: 2px solid #edeff3; padding: 2% 0; margin-bottom: 2%; } div { img { max-width: 100%; } .wp-video { width: 100% !important; video { width: 100% !important; height: auto !important; } } } } } .favorite { background: #f5f6f9; margin-top: 30px; padding: 20px; box-sizing: border-box; .favorite-head { font-size: 20px; font-weight: bold; color: #4f4f4f; margin-bottom: 20px; } ul { li { color: #4f4f4f; font-size: 18px; margin-bottom: 15px; &::marker { color: #2071f4; } img { width: 14px; height: 8px; margin-left: auto; } a { flex: 1; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: rgba(79, 79, 79, 1); } div { display: flex; align-items: center; span { flex: 0 0 50px; text-align: right; } } } } } .introduction{ ul, ol, li { list-style-type: unset; margin: revert; } p,span{ line-height: 1.5; } *{ padding: revert; } .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { margin-bottom: .5rem; font-weight: 500; line-height: 1.2; } p{ margin-bottom: 10px; } }