-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from dms-viz/simplify-css
Overhaul CSS and UI components
- Loading branch information
Showing
10 changed files
with
538 additions
and
403 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/* CSS properties that apply to all elements of a particular type */ | ||
|
||
*, | ||
::before, | ||
::after { | ||
|
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 |
---|---|---|
@@ -1,29 +1,52 @@ | ||
/* CSS for the application layout and resizing */ | ||
|
||
.main { | ||
margin-top: 3em; | ||
.app-navbar { | ||
position: fixed; | ||
top: 0px; | ||
left: 0; | ||
z-index: var(--z-index-nav); | ||
width: 100%; | ||
pointer-events: none; | ||
} | ||
|
||
.app-sidebar { | ||
position: fixed; | ||
top: 0; | ||
width: var(--sidebar-width); | ||
height: 100vh; | ||
background-color: var(--sidebar-bg-color); | ||
z-index: 100; | ||
overflow: scroll; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.app-main { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 10px; | ||
padding: 0 2.5em 0 calc(var(--sidebar-width) + 2.5em); | ||
transition: 0.5s; | ||
min-height: 100vh; | ||
} | ||
|
||
.chart { | ||
max-width: 1200px; | ||
min-width: 300px; | ||
.app-main.sidebar-collapsed { | ||
padding: 0 4em 0 calc(var(--sidebar-icon-width) + 4em); | ||
} | ||
|
||
.protein { | ||
max-width: 1080px; | ||
min-width: 300px; | ||
min-height: 300px; | ||
max-height: 600px; | ||
border-radius: 10px; | ||
.app-main .container { | ||
max-width: calc(var(--layout-max-width) - var(--sidebar-width)); | ||
min-width: var(--layout-min-width); | ||
width: 100%; | ||
box-sizing: border-box; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.app-main.sidebar-collapsed .container { | ||
max-width: calc(var(--layout-max-width) - var(--sidebar-icon-width)); | ||
} | ||
|
||
@media (min-width: 1400px) { | ||
.body-pad { | ||
padding: 0 4em 0 calc(var(--sidebar-icon-width) + 4em) !important; | ||
} | ||
.main { | ||
padding: 0 4em 0 calc(var(--sidebar-width) + 4em); | ||
} | ||
.protein { | ||
border-radius: 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
Oops, something went wrong.