@@ -2,79 +2,126 @@ import styled from "styled-components";
22import { colors , theme , helper , media } from "../../styles" ;
33// const { colors } = theme;
44
5- // https://codepen.io/wyarejali/pen/VwwQRQz
6- const ChartsStyles = styled . div `
7- ${ helper . flexCenter } ;
5+ // https://codepen.io/wyarejali/pen/VwwQRQz
6+ // const ChartsStyles = styled.div`
7+ // ${helper.flexCenter} ;
8+ // // height:fit-content;
9+ // border-radius: 1rem;
10+ // background: #24292e;
11+ // box-shadow: inset -24px -24px 39px #1e2226, inset 24px 24px 39px #2a3036;
12+ // width: 95% !important;
13+ // height: fit-content !important;
14+ // justify-content: center ;
15+
16+ // ${media.bp400`
817// height:fit-content;
9- border-radius: 1rem;
10- background: #24292e;
11- box-shadow: inset -24px -24px 39px #1e2226, inset 24px 24px 39px #2a3036;
12- width: 95% !important;
13- height: fit-content !important;
14- justify-content: center ;
15-
16- ${ media . bp400 `
17- height:fit-content;
18- min-height:1000px;
19- display: grid;
20- grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
21- grid-gap: 2rem;
22- justify-items: center;
23- align-items: center;
24- ` } ;
18+ // min-height:1000px;
19+ // display: grid;
20+ // grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
21+ // grid-gap: 2rem;
22+ // justify-items: center;
23+ // align-items: center;
24+ // `};
25+
26+ // ${media.bp600`
27+ // display: grid;
28+ // grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
29+ // grid-gap: 2rem ;
30+ // justify-items: center;
31+ // `};
32+
33+ // ${media.bp900`
34+ // margin-top: -8rem;
35+ // max-height:50%;
36+ // display: grid;
37+ // grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
38+ // grid-gap: 2rem !important;
39+ // justify-items: center;
40+ // `};
2541
26- ${ media . bp600 `
27- display: grid;
28- grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));
29- grid-gap: 2rem;
30- justify-items: center;
31- ` } ;
42+ // .chart {
43+ // background-color: ${colors.white};
44+ // // background-color: transparent;
45+ // max-width: 500px;
46+ // // overflow: auto;
47+ // margin: 5% 0%;
48+ // padding: 0 5%;
49+ // padding:1 rem;
50+ // border-radius: 0.25rem;
51+ // box-shadow: 0 5px 30px -15px rgba(0, 0, 0, 0.2);
52+ // ${media.bp400`
53+ // padding-top: 2rem;
54+ // `};
55+ // ${media.bp900`
56+ // padding-top: 2rem;
57+ // `};
3258
33- ${ media . bp900 `
34- margin-top: -8rem;
35- max-height:50%;
59+ // header {
60+ // // ${helper.flexBetween};
61+ // margins:2rem 0;
62+ // h2 {
63+ // background: none;
64+ // color: rgba(200, 225, 255, 0.7);
65+ // font-size: 1.5rem;
66+ // }
67+ // }
68+ // p {
69+ // color: ${colors.grey2};
70+ // }
71+ // }
72+
73+ // .chart-container {
74+ // overflow:visible;
75+ // box-shadow : 0px -0px 10px transparent
76+ // // display: flex;
77+ // // justify-content: space-around;
78+ // }
79+ // `;
80+
81+ const ChartsStyles = styled . div `
82+ max-width: 1200px !important;
83+ margin-top: -8rem !important;
84+ // background: #24292e;
85+ // box-shadow: inset -24px -24px 39px #1e2226, inset 24px 24px 39px #2a3036;
3686 display: grid;
3787 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
38- grid-gap: 10%;
39- justify-items: center;
40- ` } ;
88+ grid-gap: 2rem;
89+ justify-content: center;
90+ ${ media . bp900 `
91+ justify-items: center;
92+ ` } ;
4193
4294 .chart {
95+ border-radius: 10px;
96+ background: #24292e;
97+ box-shadow: inset -24px -24px 39px #1e2226, inset 24px 24px 39px #2a3036;
4398 // background-color: ${ colors . white } ;
44- // background-color: transparent;
4599 max-width: 500px;
46- // overflow: auto;
47- margin: 5% 0%;
48- padding: 0 5%;
49- border-radius: 0.25rem;
50- box-shadow: 0 5px 30px -15px rgba(0, 0, 0, 0.2);
51- ${ media . bp400 `
52- padding-top: 2rem;
100+ padding: 2rem;
101+ // border-radius: 0.25rem;
102+ // box-shadow: 0 5px 30px -15px rgba(0, 0, 0, 0.2);
103+ ${ media . bp400 `
104+ width:100%;
105+ padding: 1rem 1rem;
53106 ` } ;
54- ${ media . bp900 `
55- padding-top: 2rem;
107+ ${ media . bp600 `
108+ width:100%;
109+ padding: 2rem 2rem;
56110 ` } ;
57111
58112 header {
59- // ${ helper . flexBetween } ;
60- margins:2rem 0;
61- h2 {
62- background: none;
63- color: rgba(200, 225, 255, 0.7);
113+ ${ helper . flexBetween } ;
114+ .heading {
115+ // color: rgba(200, 225, 255, 0.7);
116+ color: ${ colors . grey } ;
64117 font-size: 1.5rem;
118+ font-weight: 450;
65119 }
66120 }
67121 p {
68122 color: ${ colors . grey2 } ;
69123 }
70124 }
71-
72- .chart-container {
73- overflow:visible;
74- box-shadow : 0px -0px 10000px transparent
75- display: flex;
76- justify-content: space-around;
77- }
78125` ;
79126
80127export default ChartsStyles ;
0 commit comments