-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(layout): improve layout for smaller screens
- Shrink side panel - Collapse category nav and add tooltip to folder icon - Hide date and modification date columns in document list - Properly organize all SCSS files - Automatically hide side panel when no document is selected
- Loading branch information
Showing
11 changed files
with
132 additions
and
75 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
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
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,53 @@ | ||
.alexandria-container { | ||
container: alexandria / inline-size; | ||
} | ||
|
||
@container alexandria (max-width: 1200px) { | ||
.document-details { | ||
width: 300px !important; | ||
|
||
> div { | ||
min-width: 300px !important; | ||
} | ||
} | ||
} | ||
|
||
@container alexandria (max-width: 1100px) { | ||
.side-nav > div:first-child { | ||
font-size: 0; | ||
} | ||
|
||
.category-nav { | ||
width: 60px; | ||
} | ||
|
||
.category-nav__category div > div > :not(:first-child) { | ||
display: none; | ||
} | ||
|
||
.category-nav__category | ||
> ul | ||
> .category-nav__category | ||
div | ||
> div | ||
> div:first-child { | ||
margin-left: 0 !important; | ||
} | ||
|
||
table.document-list > thead > tr > th:nth-child(4), | ||
table.document-list > thead > tr > th:nth-child(5), | ||
table.document-list > tbody > tr > td:nth-child(4), | ||
table.document-list > tbody > tr > td:nth-child(5) { | ||
display: none; | ||
} | ||
|
||
ul.version-history > li { | ||
> span:nth-child(1) { | ||
flex: 1; | ||
} | ||
|
||
> span:nth-child(2) { | ||
display: none; | ||
} | ||
} | ||
} |
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,3 +1,7 @@ | ||
.cursor-pointer { | ||
cursor: pointer; | ||
} | ||
|
||
.document-details { | ||
transition: width $animation-duration; | ||
|
||
|
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
File renamed without changes.
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,40 @@ | ||
.tag { | ||
padding: 0.2em 0.6em; | ||
margin: 0.2em; | ||
border-radius: 10px; | ||
display: inline-flex; | ||
color: $global-color; | ||
border: 1px solid $global-muted-color; | ||
background-color: white; | ||
align-items: center; | ||
cursor: pointer; | ||
|
||
svg { | ||
margin: 0.2rem; | ||
height: $global-small-font-size; | ||
} | ||
|
||
&--active { | ||
color: white; | ||
border-color: $global-primary-background; | ||
background-color: $global-primary-background; | ||
} | ||
|
||
&:hover { | ||
text-decoration: none; | ||
color: $global-color; | ||
box-shadow: $tag-hover-shadow; | ||
} | ||
|
||
&--active:hover { | ||
color: white; | ||
} | ||
|
||
.uk-close { | ||
margin-left: 5px; | ||
|
||
> svg { | ||
width: 0.75rem; | ||
} | ||
} | ||
} |
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,82 +1,21 @@ | ||
// 3rd party | ||
@import "ember-uikit/variables-theme"; | ||
@import "custom-uikit-rules"; | ||
@import "ember-uikit"; | ||
@import "skeleton-loading"; | ||
@import "flatpickr/dist/flatpickr"; | ||
@import "flatpickr/dist/themes/airbnb"; | ||
|
||
// custom variables | ||
$tag-hover-shadow: 0 2px 8px rgba(0 0 0 / 20%); | ||
|
||
// Components | ||
@import "components/category-nav/category"; | ||
// customization | ||
@import "custom-uikit-rules"; | ||
@import "responsive"; | ||
|
||
// components | ||
@import "components/category-nav"; | ||
@import "components/document-card"; | ||
@import "components/drop"; | ||
@import "components/document-details"; | ||
@import "components/document-grid"; | ||
@import "components/document-list"; | ||
|
||
// * DOCUMENT LIST VIEW | ||
.cursor-pointer { | ||
cursor: pointer; | ||
} | ||
|
||
.document-list tr { | ||
cursor: pointer; | ||
} | ||
|
||
.uk-table tbody tr.document-list-item--selected { | ||
background: #ffd; | ||
} | ||
|
||
// * DOCUMENT GRID VIEW | ||
.no-select { | ||
-webkit-touch-callout: none; /* iOS Safari */ /* Safari */ /* Konqueror HTML */ /* Old versions of Firefox */ /* Internet Explorer/Edge */ | ||
user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */ | ||
} | ||
|
||
// * DOCUMENT DETAIL PANEL | ||
.category-header { | ||
line-height: 40px; | ||
} | ||
|
||
// tag-manager, tag-filter | ||
.tag { | ||
padding: 0.2em 0.6em; | ||
margin: 0.2em; | ||
border-radius: 10px; | ||
display: inline-flex; | ||
color: $global-color; | ||
border: 1px solid $global-muted-color; | ||
background-color: white; | ||
align-items: center; | ||
cursor: pointer; | ||
|
||
svg { | ||
margin: 0.2rem; | ||
height: $global-small-font-size; | ||
} | ||
|
||
&--active { | ||
color: white; | ||
border-color: $global-primary-background; | ||
background-color: $global-primary-background; | ||
} | ||
|
||
&:hover { | ||
text-decoration: none; | ||
color: $global-color; | ||
box-shadow: $tag-hover-shadow; | ||
} | ||
|
||
&--active:hover { | ||
color: white; | ||
} | ||
|
||
.uk-close { | ||
margin-left: 5px; | ||
|
||
> svg { | ||
width: 0.75rem; | ||
} | ||
} | ||
} | ||
@import "components/drop"; | ||
@import "components/skeleton"; |