Skip to content

Commit df59f99

Browse files
committed
chore: revamp the styles customization and update to Dart Sass syntax
1 parent af33017 commit df59f99

File tree

5 files changed

+17
-52
lines changed

5 files changed

+17
-52
lines changed

examples/kendo-react-homepage-demo/public/index.html

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,9 @@
2222
Learn how to configure a non-root public URL by running `npm run build`.
2323
-->
2424
<title>React App</title>
25-
<style>
26-
html {
27-
height: 100%;
28-
overflow: hidden;
29-
border: 1px solid rgba(0, 0, 0, .8);
30-
}
31-
32-
body {
33-
overflow: hidden;
34-
font-family: Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
35-
"Segoe UI Symbol", "Noto Color Emoji";
36-
}
37-
</style>
3825
</head>
3926

40-
<body>
27+
<body className="k-body">
4128
<noscript>You need to enable JavaScript to run this app.</noscript>
4229
<div id="root"></div>
4330
<!--

examples/kendo-react-homepage-demo/src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class App extends Component {
2727
return (
2828
<ApolloProvider client={client}>
2929
<h1 className="demo-heading">GitHub Issues Demo</h1>
30-
<TabStrip selected={this.state.selected} onSelect={this.handleSelect} tabPosition={"top"}>
30+
<TabStrip selected={this.state.selected} onSelect={this.handleSelect} tabPosition={"top"} tabAlignment={'end'}>
3131
<TabStripTab title="React Repo">
3232
<KendoGridContainer repo="react" />
3333
</TabStripTab>

examples/kendo-react-homepage-demo/src/components/DetailComponent.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class DetailComponent extends React.Component {
2828
<div style={{ padding: 0 }}>
2929
<div className="row" style={{ height: 300 }}>
3030
<div className="col-2" >
31-
<h4><strong>Author:</strong> {dataItem.node.author.login}</h4>
31+
<strong>Author: {dataItem.node.author.login}</strong>
3232
<Chart style={{ width: '100%', height: 250 }} transitions={false}>
3333
<ChartTitle text="Issue labels" color="black" position='bottom' font="19pt sans-serif" />
3434
<ChartTooltip render={defaultTooltipRender} />
@@ -41,7 +41,7 @@ export class DetailComponent extends React.Component {
4141
</Chart>
4242
</div>
4343
<div className="col-10 issue-description" style={{ overflowY: 'scroll', height: '100%' }}>
44-
<h4>Description</h4>
44+
<strong>Description</strong>
4545
<ReactMarkDown children={dataItem.node.body} />
4646
</div>
4747
</div>

examples/kendo-react-homepage-demo/src/components/KendoGridContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class KendoGridContainer extends React.Component {
113113
onDataStateChange={(e) => { this.setState(e.dataState); }}
114114
expandField="expanded"
115115
onExpandChange={this.expandChange}
116-
style={{ height: '100%', overflow: 'auto', paddingBottom: 57 }}
116+
style={{ height: '100%', overflow: 'auto', borderInline: 0 }}
117117
detail={(props) => <DetailComponent {...props} makeChartData={this.makeChartData} />}
118118
>
119119
<GridColumn field="node.number" title="ID" width={100} />

examples/kendo-react-homepage-demo/src/styles/main.scss

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
@use "@progress/kendo-theme-material/scss/all.scss" as * with(
2+
$kendo-font-family: (-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji),
3+
$kendo-colors: (
4+
"primary": #007bff,
5+
"primary-on-surface": #007bff,
6+
),
7+
$kendo-tabstrip-content-padding-x: 0,
8+
$kendo-tabstrip-content-padding-y: 0,
9+
);
10+
111
@import "~bootstrap/scss/mixins";
212
@import "~bootstrap/scss/functions";
313
@import "~bootstrap/scss/variables";
414
@import "~bootstrap/scss/maps";
515
@import "~bootstrap/scss/reboot";
616
@import "~bootstrap/scss/grid";
717

8-
9-
@import "~@progress/kendo-theme-material/dist/all.scss";
10-
1118
@import "./fonts.scss";
1219

20+
1321
html,
1422
body {
1523
height: 100vh;
@@ -51,34 +59,22 @@ body {
5159
background-attachment: local, local, scroll, scroll;
5260
}
5361

54-
.k-grid-container {
55-
// max-height: 490px;
56-
}
57-
5862
.k-grid-pager {
5963
width: 100%;
6064
position: fixed;
6165
bottom: 0;
6266
}
6367
}
6468

65-
.k-tabstrip .k-animation-container,
66-
.k-tabstrip .k-child-animation-container,
67-
div[role="tabpanel"],
68-
div[role="tabpanel"] > div {
69-
height: 100%;
70-
}
71-
7269
.demo-heading {
73-
// position: absolute;
7470
font-family: "Metric";
7571
color: $primary;
7672
display: flex;
7773
position: absolute;
7874
left: 1rem;
7975
justify-content: flex-end;
8076
font-size: 1.75rem;
81-
margin-top: 7px;
77+
margin-top: 12px;
8278
margin-bottom: auto;
8379
}
8480

@@ -87,21 +83,3 @@ div[role="tabpanel"] > div {
8783
width: 100%;
8884
}
8985

90-
.k-tabstrip {
91-
height: 100%;
92-
position: relative;
93-
94-
.k-tabstrip-items {
95-
display: flex;
96-
justify-content: flex-end;
97-
}
98-
99-
.k-content {
100-
padding: 0;
101-
}
102-
103-
.k-animation-container {
104-
display: block;
105-
widows: 100%;
106-
}
107-
}

0 commit comments

Comments
 (0)