/*----------------------------------------------------------------------------*\ TABLE \*----------------------------------------------------------------------------*/ /* Variables \*----------------------------------------------------------------------------*/ /* Component \*----------------------------------------------------------------------------*/ .table { position: relative; width: 100%; border-collapse: separate; border-spacing: 0 0.5rem; margin-bottom: 5rem; &.table--info { tr { td { padding-left: 3rem !important; padding-top: 0 !important; padding-bottom: 1rem !important; @include media-query(lg) { padding-top: 1rem !important; } &:nth-child(1) { font-family: 'Axiforma-Bold', sans-serif; padding-bottom: 0 !important; padding-top: 1rem !important; @include media-query(lg) { padding-bottom: 1rem !important; } } } } } tr { position: relative; width: 100%; box-shadow: 0 0 5px 2px rgba(color(brand), 0.02); td { display: block; width: 100%; background: color(brand-sec); padding-left: 7.5rem; &:nth-child(2) { padding-top: 2rem; padding-bottom: 2rem; @include media-query(lg) { //padding-top: 1rem; } } @include media-query(lg) { display: table-cell; width: auto; padding: 1rem; margin-bottom: 0.5rem; } &:first-child { @include media-query(lg) { padding-top: 1rem; padding-left: 3rem; } } &:last-child { padding-bottom: 3rem; margin-bottom: 1rem; @include media-query(lg) { padding-right: 3rem; padding-bottom: 1rem; margin-bottom: 0; } } &.icon { @include media-query(lg) { width: 8rem; } img { position: absolute; left: 2rem; top: 3.5rem; @include media-query(lg) { float: left; position: relative; margin: 0; width: auto; top: 0; left: auto; } } } .name { font-family: $font-heading; font-size: 2.1rem; } .ranking { opacity: 0.5; } .date { display: inline-block; position: relative; margin: 1rem 0 2rem 0; @include media-query(lg) { margin: 0; } &:before { content: ""; display: inline-block; width: 2rem; height: 2rem; background: url('/igolf/img/icon-calendar-green.svg'); background-size: 2rem 2rem; margin: 0 1rem -0.3rem 0; } } .button { @include media-query(lg) { float: right; } } } &.event-tr { font-size: 14px; @include media-query(lg) { font-size: 16px; } @include media-query(xl) { font-size: 17px; } &.event-tr--clickable { cursor: pointer; &:hover { box-shadow: 0 0 5px 2px rgba(color(brand), 0.1); } } .event-tr__date { padding-top: 0; padding-bottom: 0; .date { margin: 0; } } .event-tr__route { padding-bottom: 1rem; } @include media-query(lg) { .event-tr__date { width: 225px; } .event-tr__route { width: 200px; .route-icon { float: left; margin-top: 5px; } .ranking { float: left; width: calc(100% - 30px); margin-left: 10px; line-height: 21px; } } } // Event name td .name { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 90%; padding-top: 2rem; display: flex; align-items: center; img { margin-right: 1rem; height: 2.5rem; } font-size: 1.5rem; @include media-query(lg) { font-size: 1.75rem; padding-top: 0; } @include media-query(xl) { font-size: 2.1rem; } } } } }