From f82cb3aefe8b26c3e672cb41d87790a8fee07805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 7 Feb 2015 22:00:33 +0100 Subject: [PATCH] Various css updates --- .../features/annotations/partials/editor.html | 13 +++++----- .../features/profile/partials/profile.html | 6 ++--- src/css/less/tables_lists.less | 24 +++++++++++++++++-- src/css/less/variables.dark.less | 8 +++---- 4 files changed, 36 insertions(+), 15 deletions(-) diff --git a/src/app/features/annotations/partials/editor.html b/src/app/features/annotations/partials/editor.html index 05ea697bc57..fc7d6225d3f 100644 --- a/src/app/features/annotations/partials/editor.html +++ b/src/app/features/annotations/partials/editor.html @@ -27,16 +27,17 @@   {{annotation.name}} - - + + + + + Edit - - - - + + diff --git a/src/app/features/profile/partials/profile.html b/src/app/features/profile/partials/profile.html index 6db4a45ce8e..5b19a8e2690 100644 --- a/src/app/features/profile/partials/profile.html +++ b/src/app/features/profile/partials/profile.html @@ -55,9 +55,9 @@ - - - + +
Name: {{ac.name}}Role: {{ac.role}} + Name: {{ac.name}}Role: {{ac.role}} Current diff --git a/src/css/less/tables_lists.less b/src/css/less/tables_lists.less index f51f214c4cc..4020660bca0 100644 --- a/src/css/less/tables_lists.less +++ b/src/css/less/tables_lists.less @@ -3,13 +3,22 @@ tr:nth-child(odd) td { background-color: @grafanaListAccent; + &.nobg { + background-color: transparent; + border:none; + border-left: 1px solid @grafanaListBorderBottom; + } } - td, th { - text-align: left; + td { padding: 5px 10px; white-space: nowrap; border-bottom: 1px solid @grafanaListBorderBottom; + &.nobg { + background-color: transparent; + border:none; + border-left: 1px solid @grafanaListBorderBottom; + } } tr:first-child { @@ -25,6 +34,17 @@ td:last-child { border-right: 1px solid @grafanaListBorderBottom; } + + .max-width-btns { + .btn { + width: 100%; + } + } + + strong { + font-weight: normal; + color: @white; + } } .max-width { diff --git a/src/css/less/variables.dark.less b/src/css/less/variables.dark.less index af8b72360d8..65adf89729a 100644 --- a/src/css/less/variables.dark.less +++ b/src/css/less/variables.dark.less @@ -16,7 +16,7 @@ // Accent colors // ------------------------- @blue: #33B5E5; -@blueDark: #0086b3; +@blueDark: #005f81; @green: #669900; @red: #CC3900; @yellow: #ECBB13; @@ -89,7 +89,7 @@ @grafanaListAccent: lighten(@grayDarker, 2%); @grafanaListBorderTop: @grayDark; @grafanaListBorderBottom: @black; -@grafanaListHighlight: #343434; +@grafanaListHighlight: #333; @grafanaListMainLinkColor: @textColor; // Scrollbars @@ -110,8 +110,8 @@ @btnBackgroundHighlight: darken(@grayLight, 15%); @btnBorder: #bbb; -@btnPrimaryBackground: lighten(@blueDark, 5%); -@btnPrimaryBackgroundHighlight: darken(@blueDark, 5%); +@btnPrimaryBackground: @blueDark; +@btnPrimaryBackgroundHighlight: lighten(@blueDark, 10%); @btnInfoBackground: lighten(@purple, 5%); @btnInfoBackgroundHighlight: darken(@purple, 5%);