@import '~styles/variables.less'; @collapse-width: 1100px; @single-col-width: 600px; @block-title-space: 3.75rem; .Proposal { max-width: 1280px; margin: 0 auto; &-banner { text-align: center; margin-top: -@template-space-top; margin-left: -@template-space-sides; margin-right: -@template-space-sides; margin-bottom: 1rem; .ant-alert { padding-top: 1rem; } } &-top { display: flex; width: 100%; margin-bottom: 2rem; @media (max-width: @collapse-width) { flex-direction: column; } &-social { display: flex; flex-direction: column; margin-top: @block-title-space; margin-right: 0.5em; margin-left: -1rem; font-size: 1.1rem; @media (max-width: @collapse-width) { position: absolute; font-size: 1.5em; margin-left: -1.8rem; margin-top: @block-title-space + 1rem; padding: 0.2rem 0.5rem 0; background: #ffffff; border: 1px solid #ddd; border-radius: 4px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1); z-index: 1; } } &-main { position: relative; display: flex; flex-direction: column; width: calc(100% - 19rem); margin-right: 1.5rem; @media (max-width: @collapse-width) { width: 100%; } &-title { font-size: 2rem; line-height: 3rem; margin-bottom: 0.75rem; margin-left: 0.5rem; @media (min-width: @collapse-width) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @media (max-width: @collapse-width) { font-size: 1.8rem; } @media (max-width: @single-col-width) { font-size: 1.6rem; } } // shared &-block { display: flex; flex-direction: column; position: relative; padding: 1.5rem; margin-bottom: 1rem; border-radius: 4px; border: 1px solid #ddd; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.1); overflow: hidden; // shared &-title { font-size: 1.5rem; line-height: 2.2rem; margin-top: 1rem; margin-bottom: 0.5rem; margin-left: 0.5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } &-bodyText { flex-grow: 1; flex-basis: 0; overflow: hidden; font-size: 1.1rem; @media (max-width: @collapse-width) { flex-basis: auto; max-height: 300px; } &.is-expanded { overflow: visible; flex-basis: auto; max-height: none; } } &-bodyExpand { display: block; position: absolute; width: 100%; left: 0; bottom: 0; height: 120px; border-radius: 4px; line-height: 160px; text-align: center; background: linear-gradient( to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) ); outline: none; color: rgba(@primary-color, 0.8); cursor: pointer; transition: color 100ms ease; &:hover { color: rgba(@primary-color, 1); } } } &-menu { position: absolute; top: 1.5rem; right: 0; transform: translateY(-50%); } } &-side { width: 19rem; display: flex; flex-direction: column; @media (max-width: @collapse-width) { width: 100%; flex-direction: row; justify-content: space-between; > * { width: 50%; flex: 1; } > *:last-child { margin-left: 1rem; } } @media (max-width: @single-col-width) { flex-direction: column; > * { width: auto; } > *:last-child { margin-left: 0; } } // shared &-block { display: flex; flex-direction: column; > *:last-child { flex: 1; } } } } }