From b1b158ad58fe666d54645d6e959575172eaa3091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Sun, 6 Dec 2015 20:15:01 +0100 Subject: [PATCH] added css to the inner iframe menu --- src/index-angular-app.html | 6 ++++-- src/menu/menu.controller.ts | 4 ++-- src/style.css | 13 ++----------- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/index-angular-app.html b/src/index-angular-app.html index ca3751c..aa8ab54 100644 --- a/src/index-angular-app.html +++ b/src/index-angular-app.html @@ -4,9 +4,11 @@ This will be an iframe programmatically included into a parent page. + + - -
+ +

diff --git a/src/menu/menu.controller.ts b/src/menu/menu.controller.ts index 59e1878..bc2095d 100644 --- a/src/menu/menu.controller.ts +++ b/src/menu/menu.controller.ts @@ -42,14 +42,14 @@ module tagIt { onSenseSelect(sense: ISense) { //remove all tags so that new tag range is serialized - //based on a document without any highlights + //based on a document without any highlights this.webPageService.removeAllTagsFromPage(() => { //initialize and save the new tag var senseTag = this.webPageService.initializeNewTag(sense); this.tagStorageService.saveTag(senseTag); this.backendService.sendTaggedDataToServer(senseTag); - //re-add tags, with new tag. Clear menu options. + //re-add tags, with new tag. Clear menu options. this.webPageService.readdTagsToPage( this.tagStorageService.loadTags() ); diff --git a/src/style.css b/src/style.css index 4b8cf51..3fdb54d 100644 --- a/src/style.css +++ b/src/style.css @@ -9,23 +9,14 @@ position: fixed; overflow-y: auto; width: 30%; - height: 100%; - top: 0; left: 0; - bottom: 0; - background-color: #ccc; padding: 10px; } +.tagit-iframe, .tagit-menu { - position: fixed; - overflow-y: auto; - width: 30%; - top: 0; - left: 0; - bottom: 0; background-color: #ccc; - padding: 10px; + height: 100%; } .tagit-menu ul {