Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Commit

Permalink
Clean up create drawer styles
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxtina committed Nov 16, 2020
1 parent c290cba commit 3ef9151
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
8 changes: 4 additions & 4 deletions client/css/section-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ div.section-editor {

.cs-tabs div.section-editor {
position: absolute;
top: 134px;
bottom: 20px;
left: 20px;
right: 20px;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: grid;
grid-template-columns: 340px 1fr;
grid-template-rows: minmax(55px, max-content);
Expand Down
5 changes: 5 additions & 0 deletions client/css/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@
padding: 20px;
background: #fff;
}

.create-drawer .cs-tabs .react-tabs__tab-panel--selected {
position: relative;
flex-grow: 1;
}
10 changes: 7 additions & 3 deletions client/lib/layout/create/create-content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@ class CreateContent extends React.Component {
style={{
border: 0,
padding: "20px",
height: "100%",
marginBottom: "60px"
flexGrow: "1",
marginBottom: "0",
display: "flex",
flexDirection: "column"
}}
>
<Tabs
className="cs-tabs"
style={{
height: "100%"
flexGrow: "1",
display: "flex",
flexDirection: "column"
}}
selectedIndex={this.state.index}
onSelect={(tab) => this.handleTabClick(tab)}
Expand Down
22 changes: 8 additions & 14 deletions client/lib/layout/create/create-drawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ import CreateContent from "./create-content";

const useStyles = makeStyles(() => ({
root: {
display: "flex",
position: "fixed",
bottom: "10px",
right: "20px",
zIndex: 1000
// position: "fixed",
// bottom: "10px",
// right: "20px",
// zIndex: 1000
},
drawer: {
width: "100%",
height: "100%",
flexShrink: 0,
// width: "100%",
// height: "100%",
// flexShrink: 0,
},
drawerPaper: {
width: "100%",
Expand All @@ -28,18 +27,13 @@ const useStyles = makeStyles(() => ({
display: "flex",
alignItems: "center",
justifyContent: "space-between",
paddingRight: "20px",
paddingBottom: "20px",
padding: "10px 7px 10px 20px",
backgroundColor: "#31383d"
},
drawerHeaderTitle: {
float: "left",
marginLeft: "19px",
display: "flex",
justifyContent: "center",
alignItems: "center",
fontSize: "40px",
marginBottom: "-10px",
color: "#fff"
},
drawerHeaderDefault: {
Expand Down
8 changes: 4 additions & 4 deletions client/lib/layout/create/wizards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import resourceMetadata from "../../../shared/manifests/resource-metadata";
const useStyles = makeStyles(() => ({
root: {
position: "absolute",
top: "134px",
bottom: "20px",
left: "20px",
right: "20px"
top: "0",
bottom: "0",
left: "0",
right: "0"
},
content: {
padding: "40px",
Expand Down

0 comments on commit 3ef9151

Please sign in to comment.