-
Notifications
You must be signed in to change notification settings - Fork 126
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 #2150 from tf/reorder-chapters
Reorder chapters mode
- Loading branch information
Showing
19 changed files
with
246 additions
and
67 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,12 @@ | ||
.sortable-placeholder { | ||
outline: 1px dotted var(--ui-on-surface-color-lighter); | ||
|
||
// scss-lint:disable ImportantRule | ||
border-color: transparent !important; | ||
background-color: transparent !important; | ||
// scss-lint:enable ImportantRule | ||
|
||
* { | ||
visibility: hidden; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
entry_types/scrolled/config/locales/new/reorder_chapters.de.yml
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 @@ | ||
de: | ||
pageflow_scrolled: | ||
editor: | ||
entry_outline: | ||
reorder_chapters: "Kapitel umsortieren..." | ||
reorder_chapters_header: "Kapitel umsortieren" | ||
done: Fertig |
7 changes: 7 additions & 0 deletions
7
entry_types/scrolled/config/locales/new/reorder_chapters.en.yml
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 @@ | ||
en: | ||
pageflow_scrolled: | ||
editor: | ||
entry_outline: | ||
reorder_chapters: "Reorder chapters..." | ||
reorder_chapters_header: "Reorder chapters" | ||
done: Done |
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
50 changes: 44 additions & 6 deletions
50
entry_types/scrolled/package/src/editor/views/EntryOutlineView.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 |
---|---|---|
@@ -1,13 +1,51 @@ | ||
.root {} | ||
.root { | ||
position: relative; | ||
user-select: none; | ||
composes: outline from './outline.module.css'; | ||
} | ||
|
||
.chapters {} | ||
.collapsed { | ||
composes: collapsed from './outline.module.css'; | ||
} | ||
|
||
.root .header { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.toolbar { | ||
position: absolute; | ||
top: -6px; | ||
right: -1px; | ||
} | ||
|
||
.dropDownButton { | ||
--drop-down-button-width: 26px; | ||
--ui-on-button-color: var(--ui-primary-color-light); | ||
|
||
.chapters > :global(.sortable-placeholder) { | ||
margin-bottom: 12px; | ||
padding: 0 10px 10px 10px; | ||
border-radius: rounded(lg); | ||
button.hover, | ||
button:hover { | ||
--ui-on-button-color: var(--ui-primary-color); | ||
} | ||
} | ||
|
||
.collapsed .dropDownButton, | ||
.expandChapters { | ||
display: none !important; | ||
} | ||
|
||
.expandChapters { | ||
composes: saveButton from './buttons.module.css'; | ||
padding-top: 3px !important; | ||
padding-bottom: 3px !important; | ||
} | ||
|
||
.collapsed .expandChapters { | ||
display: block !important; | ||
} | ||
|
||
.chapters {} | ||
|
||
.addChapter { | ||
composes: addButton from './buttons.module.css'; | ||
composes: button from './outline.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
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.