From fbf1c68c7aec8b81d64e75a097e1a4b0b08367c4 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Mon, 17 Sep 2018 11:02:38 -0700 Subject: [PATCH] Notebook vue styling (#2169) * Notebook styling WIP - New notebook scss file; - notebook.html converted; * Notebook styling WIP - Entries and embeds - New discreteItem theme constants; * Notebook styling shippable - Notebook entries and embeds finished; - TODO: Fix styling for c-input-inline when SCSS is merged and remove s-input-inline class in entry.html; * Notebook styling shippable - Remove legacy Notebook styles; - Painterro overrides; - Code cleanup * Notebook mobile styling; entry layout still WIP - Entries now layout better in narrow containers but still WIP, particularly for delete icon; - Mobile styling; * Notebook entry markup for better narrow Notebook layout --- src/MCT.js | 2 + src/plugins/notebook/res/templates/embed.html | 24 +- src/plugins/notebook/res/templates/entry.html | 24 +- .../notebook/res/templates/notebook.html | 41 +- .../notebook/src/actions/AnnotateSnapshot.js | 3 - src/styles-new/_constants-snow.scss | 15 +- src/styles-new/_controls.scss | 5 +- src/styles-new/_global.scss | 42 ++ src/styles-new/legacy-styles.scss | 4 +- src/styles-new/notebook.scss | 385 ++++++++++++++++++ src/ui/components/controls/search.vue | 2 +- 11 files changed, 490 insertions(+), 57 deletions(-) create mode 100644 src/styles-new/notebook.scss diff --git a/src/MCT.js b/src/MCT.js index 402ed1dd52..209d048b65 100644 --- a/src/MCT.js +++ b/src/MCT.js @@ -38,6 +38,7 @@ define([ './ui/router/Browse', '../platform/framework/src/Main', './styles-new/core.scss', + './styles-new/notebook.scss', './ui/components/layout/Layout.vue', 'vue' ], function ( @@ -58,6 +59,7 @@ define([ Browse, Main, coreStyles, + NotebookStyles, Layout, Vue ) { diff --git a/src/plugins/notebook/res/templates/embed.html b/src/plugins/notebook/res/templates/embed.html index 7aaa2c6ea7..343c068450 100644 --- a/src/plugins/notebook/res/templates/embed.html +++ b/src/plugins/notebook/res/templates/embed.html @@ -1,20 +1,17 @@ -
- -
+
- -
-
- {{embed.name}} - +
+ - - -
+
{{formatTime(embed.createdOn, 'YYYY-MM-DD HH:mm:ss')}}
diff --git a/src/plugins/notebook/res/templates/entry.html b/src/plugins/notebook/res/templates/entry.html index 209f03c10f..41b8bdcf75 100644 --- a/src/plugins/notebook/res/templates/entry.html +++ b/src/plugins/notebook/res/templates/entry.html @@ -1,16 +1,15 @@ -
  • - -
    -
    +
    +
    {{formatTime(entry.createdOn, 'YYYY-MM-DD')}} {{formatTime(entry.createdOn, 'HH:mm:ss')}}
    - -
    -
    + +
    - -
    +
    +
    -
    - -
    +
    +
  • \ No newline at end of file diff --git a/src/plugins/notebook/res/templates/notebook.html b/src/plugins/notebook/res/templates/notebook.html index 5992277468..973c4f39d8 100644 --- a/src/plugins/notebook/res/templates/notebook.html +++ b/src/plugins/notebook/res/templates/notebook.html @@ -1,17 +1,17 @@ -
    -
    -