-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TabbedPage.module.css GovernancePage.module.css StandalonePage.module…
….css
- Loading branch information
Showing
9 changed files
with
223 additions
and
217 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import StandalonePageBody from "../StandalonePageBody"; | ||
import { classNames } from "pi-ui"; | ||
import styles from "./StandalonePage.module.css"; | ||
|
||
const StandalonePage = ({ header, children, className }) => { | ||
const body = header ? ( | ||
<StandalonePageBody>{children}</StandalonePageBody> | ||
) : ( | ||
children | ||
); | ||
|
||
return ( | ||
<div className={classNames(styles.page, className)}> | ||
{header} | ||
{body} | ||
</div> | ||
); | ||
}; | ||
|
||
export default StandalonePage; |
7 changes: 7 additions & 0 deletions
7
app/components/layout/StandalonePage/StandalonePage.module.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.page { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
bottom: 0; | ||
left: 0; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from "./StandalonePage"; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
.tabbedPageBody { | ||
overflow: hidden; | ||
position: absolute; | ||
right: 0; | ||
top: 163px; | ||
bottom: 0; | ||
left: 0; | ||
background-color: var(--background-container); | ||
} | ||
|
||
.tabbedPageHeader { | ||
background-color: var(--background-back-color); | ||
padding: 43px 60px 0px 63px; | ||
position: absolute; | ||
top: 0px; | ||
right: 0px; | ||
left: 0px; | ||
height: 114px; | ||
} | ||
|
||
.tabbedPageHeader > .tabs { | ||
position: absolute; | ||
bottom: 0px; | ||
left: 100px; | ||
white-space: nowrap; | ||
} | ||
|
||
.tabbedPageHeader > .tabs > .tab { | ||
line-height: 35px; | ||
margin-right: 55px; | ||
} | ||
|
||
.tabbedPageHeader > .tabs > .tab:last-of-type { | ||
margin-right: 0; | ||
} | ||
|
||
.tabbedPageHeader > .tabs > .tabs-caret > { | ||
position: absolute; | ||
bottom: 0; | ||
height: 5px; | ||
} | ||
|
||
.tabbedPageHeader > .tabs > .tabs-caret > .active { | ||
background-color: var(--accent-color); | ||
position: absolute; | ||
height: 5px; | ||
} | ||
|
||
.tabContent { | ||
position: absolute; | ||
overflow-x: hidden; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
padding: 38px 80px 30px 63px; | ||
background-color: var(--background-container); | ||
} | ||
|
||
.tabContent:not(.visible)::-webkit-scrollbar { | ||
width: 5px; | ||
background-color: transparent; | ||
} | ||
|
||
.tabContent:not(.visible)::-webkit-scrollbar-thumb { | ||
background-color: transparent; | ||
} | ||
|
||
|
||
@media screen and (max-width: 1179px) { | ||
.tabbedPageHeader { | ||
padding-left: 20px; | ||
} | ||
.tabbedPageHeader > .tabs { | ||
left: 55px; | ||
} | ||
.tabContent { | ||
padding: 38px 20px 30px 20px; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.tabbedPageBody { | ||
top: 133px; | ||
} | ||
|
||
.tabbedPageHeader { | ||
height: 82px; | ||
padding-top: 30px; | ||
} | ||
|
||
.tabbedPageHeader > .tabs { | ||
font-size: 13px; | ||
left: 25px; | ||
right: 20px; | ||
.tab { | ||
margin-right: 45px; | ||
} | ||
} | ||
|
||
.tabContent { | ||
padding: 0 10px 80px 10px; | ||
} | ||
} |
This file contains 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
67 changes: 67 additions & 0 deletions
67
app/components/views/GovernancePage/GovernancePage.module.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
tabbed-page-body.governance { | ||
//top: 157px; | ||
.tab-content { | ||
padding: 0; | ||
} | ||
.tabbed-page-body { | ||
top: 174px; | ||
.tab-content { | ||
padding: 0; | ||
} | ||
} | ||
.tabbed-page-header { | ||
padding: 0; | ||
height: 133px; | ||
.tabs { | ||
position: relative; | ||
left: 0; | ||
width: 100%; | ||
height: 40px; | ||
padding-left: 103px; | ||
margin-bottom: 9px; | ||
background-color: var(--tabbed-page-header-bg); | ||
.tab { | ||
margin-right: 20px; | ||
a { | ||
margin: 0; | ||
border-radius: 5px; | ||
span | ||
{ | ||
color:var(--tabbed-page-header-text); | ||
} | ||
&.active { | ||
background-color: var(--tabbed-page-header-active-bg); | ||
padding: 3px 10px 3px 10px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}*/ | ||
|
||
@media screen and (max-width: 768px) { | ||
/*.tabbed-page-body.governance { | ||
top: 112px; | ||
.tabbed-page-body { | ||
top: 250px; | ||
} | ||
}*/ | ||
} | ||
|
||
@media screen and (max-width: 1179px) { | ||
/* | ||
.tabbed-page-body.governance .tabbed-page-header > .tabs { | ||
padding-left: 35px; | ||
} | ||
*/ | ||
} | ||
|
||
.governance { | ||
top: 157px; | ||
} |
Oops, something went wrong.