Created
March 10, 2022 12:09
-
-
Save dhananjay431/cfe7b05cc1fb5da0300af56de9221fd0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tbl_name:tbl_1; | |
$tbl_head_bg_color:#1b47c5; | |
$fix_length: 4; | |
.#{$tbl_name}_table .#{$tbl_name}_tbody .#{$tbl_name}_th { | |
position: relative; | |
} | |
@for $i from 0 through $fix_length - 1 { | |
.#{$tbl_name}_table .#{$tbl_name}_thead .#{$tbl_name}_th:nth-child(#{$i + 1}) { | |
position: sticky; | |
left: $i*100; | |
background: white; | |
z-index: 1; | |
} | |
.#{$tbl_name}_table .#{$tbl_name}_tbody .#{$tbl_name}_th:nth-child(#{$i + 1}) { | |
position: sticky; | |
left: $i*100; | |
background: white; | |
z-index: 1; | |
} | |
.#{$tbl_name}_table .#{$tbl_name}_tfoot .#{$tbl_name}_th:nth-child(#{$i + 1}) { | |
position: sticky; | |
left: $i*100; | |
background-color: #1b47c5 !important; | |
z-index: 1; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tbl_1_table .tbl_1_tbody .tbl_1_th { | |
position: relative; | |
} | |
.tbl_1_table .tbl_1_thead .tbl_1_th:nth-child(1) { | |
position: sticky; | |
left: 0; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tbody .tbl_1_th:nth-child(1) { | |
position: sticky; | |
left: 0; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tfoot .tbl_1_th:nth-child(1) { | |
position: sticky; | |
left: 0; | |
background-color: #1b47c5 !important; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_thead .tbl_1_th:nth-child(2) { | |
position: sticky; | |
left: 100; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tbody .tbl_1_th:nth-child(2) { | |
position: sticky; | |
left: 100; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tfoot .tbl_1_th:nth-child(2) { | |
position: sticky; | |
left: 100; | |
background-color: #1b47c5 !important; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_thead .tbl_1_th:nth-child(3) { | |
position: sticky; | |
left: 200; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tbody .tbl_1_th:nth-child(3) { | |
position: sticky; | |
left: 200; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tfoot .tbl_1_th:nth-child(3) { | |
position: sticky; | |
left: 200; | |
background-color: #1b47c5 !important; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_thead .tbl_1_th:nth-child(4) { | |
position: sticky; | |
left: 300; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tbody .tbl_1_th:nth-child(4) { | |
position: sticky; | |
left: 300; | |
background: white; | |
z-index: 1; | |
} | |
.tbl_1_table .tbl_1_tfoot .tbl_1_th:nth-child(4) { | |
position: sticky; | |
left: 300; | |
background-color: #1b47c5 !important; | |
z-index: 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "Ruby Sass/3.7.4", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment