@use "../base" as *; @use "../abstracts" as *; .paragraph--type--title-ckeditor { width: 100%; gap: 8px; font-family: $font-primary; font-style: normal; padding: 24px 16px 28px; @include breakpoint(medium) { padding-right: 0; padding-left: 0; } .title-ckeditor__content { min-width: 0; } .field--name-field-title { color: $dark-gray; font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; margin-bottom: 8px; @include breakpoint(medium) { font-size: 1.75rem; line-height: 2.25rem; } } &.read-more { display: grid; gap: 24px; padding-top: 12px; @include breakpoint(medium) { grid-template-columns: minmax(0, 1fr) 320px; align-items: stretch; gap: 32px; padding-bottom: 40px; } @include breakpoint(large) { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } .field--name-field-title { font-size: 1.125rem; line-height: 1.5rem; margin-bottom: 16px; @include breakpoint(medium) { font-size: 1.25rem; line-height: 1.625rem; } @include breakpoint(large) { font-size: 1.25rem; line-height: 1.625rem; } } .title-ckeditor__visual { display: none; @include breakpoint(medium) { display: block; min-height: 230px; border-radius: 4px; background: linear-gradient(90deg, rgba(61, 63, 78, 0.18), rgba(61, 63, 78, 0.04)), url("/themes/custom/gto/assets/images/login-drainage-driveway.png") center / cover no-repeat; } } } .field--name-field-cke { p, ul { margin: 0; padding: 0; color: $mid-gray; font-size: .875rem; font-weight: 400; line-height: 1.125rem; } ul { padding-left: 18px; } table { display: block; font-family: $font-primary; font-size: .75rem; padding: 0; margin: 0; tbody { width: 100%; display: block; tr { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid rgba(61, 63, 78, 0.12); &:first-child { p { color: $dark-gray; } } &:last-child { border: none; } &:nth-child(even) { background-color: transparent; } td { padding: 8px; p { text-align: center; } } } } } } &.read-more { .field--name-field-cke { p, ul { margin-bottom: 5px; } a { color: $brand-blue; } } } } .read-more { &--content { max-height: 100px; transition: all 200ms; overflow: hidden; box-shadow: inset 0 -40px 30px -30px #fff; } &--button { cursor: pointer; color: $brand-blue; font-weight: bold; font-size: 0.875rem; &.less { display: none; } } &--checkbox { visibility: hidden; width: 0; height: 0; pointer-events: none; position: absolute; &:checked + .read-more { .read-more { &--content { max-height: 10000px; box-shadow: none; } &--button { &.more { display: none; } &.less { display: block; } } } } } }