diff --git a/index.html b/index.html index c56ea1e..162d760 100644 --- a/index.html +++ b/index.html @@ -41,8 +41,9 @@
-
+
+ Add Host
diff --git a/static/css/.style.css.swp b/static/css/.style.css.swp new file mode 100644 index 0000000..27ede3f Binary files /dev/null and b/static/css/.style.css.swp differ diff --git a/static/css/style.css b/static/css/style.css index da8f73c..50f9b04 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,36 +1,3 @@ -@font-face { - font-family: 'Material Icons'; - font-style: normal; - font-weight: 400; - src: local('Material Icons'), - local('MaterialIcons-Regular'), - url('../fonts/MaterialIcons-Regular.woff') format('woff'), -} -.material-icons { - font-family: 'Material Icons'; - font-weight: normal; - font-style: normal; - font-size: 24px; /* Preferred icon size */ - display: inline-block; - line-height: 1; - text-transform: none; - letter-spacing: normal; - word-wrap: normal; - white-space: nowrap; - direction: ltr; - - /* Support for all WebKit browsers. */ - -webkit-font-smoothing: antialiased; - /* Support for Safari and Chrome. */ - text-rendering: optimizeLegibility; - - /* Support for Firefox. */ - -moz-osx-font-smoothing: grayscale; - - /* Support for IE. */ - font-feature-settings: 'liga'; -} - .mdl-layout__header-row { color: #fff; } @@ -46,22 +13,12 @@ color:#fff; padding:25px; } -#addHostIcon { - width:64px; - height:64px; - margin:auto; - display:block; -} #backIcon { height: 32px; width: 32px; margin-left: -20px; padding-right: 20px; } -#addHostCell { - padding-top:3px; - padding-bottom:3px; -} .mdl-dialog { border: none; box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.14), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.2); @@ -184,3 +141,13 @@ main { color: #000; font-weight: bold; } +.host-cell { + display: inline-block; + width: 150px !important; + height: 150px !important; + background-color: #000; +} +.host-cell img { + width: 80px;; + margin-bottom: 10px; +} diff --git a/static/js/index.js b/static/js/index.js index 4eae8b5..5d6b322 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -510,9 +510,10 @@ function onWindowLoad(){ hosts = previousValue.hosts != null ? previousValue.hosts : []; for(var i = 0; i < hosts.length; i++) { // programmatically add each new host. var cell = document.createElement('div'); - cell.className += 'mdl-cell mdl-cell--3-col'; + cell.className += 'mdl-cell mdl-cell--3-col host-cell'; cell.id = 'hostgrid-' + hosts[i]; cell.innerHTML = hosts[i]; + $(cell).prepend($("", {src: "static/res/ic_desktop_windows_white_24px.svg"})); $('#host-grid').append(cell); cell.onclick = hostChosen; } diff --git a/static/res/ic_desktop_windows_white_24px.svg b/static/res/ic_desktop_windows_white_24px.svg new file mode 100644 index 0000000..685582f --- /dev/null +++ b/static/res/ic_desktop_windows_white_24px.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file