11import styled from "styled-components" ;
22
33export const TableWrapper = styled . div `
4- overflow-x: auto;
5- overflow-y: hidden;
4+ overflow-x: auto;
5+ overflow-y: hidden;
66
7- .smiMark {
8- width: 2.5rem;
9- height: 2.5rem;
10- max-height:2.5rem;
11- }
7+ .smiMark {
8+ width: 2.5rem;
9+ height: 2.5rem;
10+ max-height: 2.5rem;
11+ }
1212
13- .gatsby-image-wrapper {
14- img {
15- width: 2.5rem;
16- height: 2.5rem;
17- margin: auto;
18- }
19- }
13+ .gatsby-image-wrapper {
14+ img {
15+ width: 2.5rem;
16+ height: 2.5rem;
17+ margin: auto;
18+ }
19+ }
2020
21- .smi-tooltip {
22- box-shadow: 1px 1px 6px -6px ${ props => props . theme . primaryLightColorTwo } ;
23- border-radius: .75rem;
24- line-height: 1.5rem;
25- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
26- }
21+ .smi-tooltip {
22+ box-shadow: 1px 1px 6px -6px ${ ( props ) => props . theme . primaryLightColorTwo } ;
23+ border-radius: 0 .75rem;
24+ line-height: 1.5rem;
25+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
26+ }
2727
28- .tooltip-div{
29- display: inline-block;
30- }
28+ .tooltip-div {
29+ display: inline-block;
30+ }
3131
32- table {
32+ table {
3333 border-spacing: 0;
3434 width: 100%;
35-
35+
3636 td {
37- padding: 0.3rem;
38- height: 4rem;
39- color: ${ props => props . theme . text } ;
40- text-align: center;
41- font-size: 0.9rem;
42- font-weight: 400;
43- border-bottom: 1px solid ${ props => props . theme . grey212121ToGreyEFEFEF } ;
44- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
37+ padding: 0.3rem;
38+ height: 4rem;
39+ color: ${ ( props ) => props . theme . text } ;
40+ text-align: center;
41+ font-size: 0.9rem;
42+ font-weight: 400;
43+ border-bottom: 1px solid ${ ( props ) => props . theme . grey212121ToGreyEFEFEF } ;
44+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
4545 }
4646 th {
47- background: ${ props => props . theme . grey404040ToGrey1E2117 } ;
48- color: #ffffff;
49- height: 4rem;
50- font-size: 1rem;
51- font-weight: 600;
52- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
47+ background: ${ ( props ) => props . theme . grey404040ToGrey1E2117 } ;
48+ color: #ffffff;
49+ height: 4rem;
50+ font-size: 1rem;
51+ font-weight: 600;
52+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
5353 }
54-
55- tr.primaryRow {
56- background: ${ props => props . theme . body } ;
57- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
58- td {
59- border-right: 1px solid ${ props => props . theme . body } ;
60- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
61- }
62- }
63- tr.secondaryRow {
64- background: #efefef;
65- td {
66- border-right: 1px solid ${ props => props . theme . body } ;
67- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
68- }
69- }
7054
71- tr.secondaryRow-hidden {
72- display: none;
73- }
55+ tr.primaryRow {
56+ background: ${ ( props ) => props . theme . body } ;
57+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
58+ td {
59+ border-right: 1px solid ${ ( props ) => props . theme . body } ;
60+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
61+ }
62+ }
63+ tr.secondaryRow {
64+ background: #efefef;
65+ td {
66+ border-right: 1px solid ${ ( props ) => props . theme . body } ;
67+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
68+ }
69+ }
70+
71+ tr.secondaryRow-hidden {
72+ display: none;
73+ }
7474
7575 tr {
76- :last-child {
77- td {
78- border-bottom: 0;
79- }
80- }
76+ :last-child {
77+ td {
78+ border-bottom: 0;
79+ }
80+ }
81+ }
82+
83+ td,
84+ th {
85+ :last-child {
86+ border-right: 0;
87+ }
88+ }
89+
90+ td:hover {
91+ box-shadow: 0px 0px 15px -10px ${ ( props ) => props . theme . whiteToBlack } ;
92+ transform: translateY(0px);
8193 }
82-
83- td, th {
84- :last-child {
85- border-right: 0;
86- }
87- }
88-
89- th, tr{
90- &:hover{
91- box-shadow: 0px 0px 15px -10px ${ props => props . theme . whiteToBlack } ;
92- transform: translateY(0px);
93- }
94- }
9594 }
96- ` ;
95+ ` ;
0 commit comments