From 4c65b47860cb35c0050bc2327715b13d132f9077 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Tue, 23 Sep 2014 23:03:51 +0800 Subject: [PATCH] Make "Apply changes" look more like a button. --- omega-target-chromium-extension/overlay/manifest.json | 2 +- omega-web/src/less/options.less | 8 ++++++-- omega-web/src/options.jade | 5 +++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/omega-target-chromium-extension/overlay/manifest.json b/omega-target-chromium-extension/overlay/manifest.json index 0067c43..9346458 100644 --- a/omega-target-chromium-extension/overlay/manifest.json +++ b/omega-target-chromium-extension/overlay/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_manifest_app_name__", - "version": "2.1.2", + "version": "2.1.3", "description": "__MSG_manifest_app_description__", "icons": { "16": "img/icons/omega-16.png", diff --git a/omega-web/src/less/options.less b/omega-web/src/less/options.less index e0376e4..d5bb419 100644 --- a/omega-web/src/less/options.less +++ b/omega-web/src/less/options.less @@ -37,6 +37,11 @@ a[role="button"] { min-width: 0 !important; } +.align-initial { + text-align: left; + text-align: initial; +} + ul.list-style-none, li.list-style-none { list-style: none; padding-left: 0; @@ -92,8 +97,7 @@ ul.list-style-none, li.list-style-none { * { pointer-events: auto; pointer-events: initial; - text-align: left; - text-align: initial; + .align-initial(); } .alert { diff --git a/omega-web/src/options.jade b/omega-web/src/options.jade index 01df462..34c7f5a 100644 --- a/omega-web/src/options.jade +++ b/omega-web/src/options.jade @@ -41,8 +41,9 @@ html(lang='en' ng-controller='MasterCtrl' ng-csp) span {{'options_newProfile' | tr}} li.divider li.nav-header Actions - li(ng-class='{"bg-warning": optionsDirty}') - a.text-success(role='button' ng-click='applyOptions()') + li + a.btn-default.btn.align-initial(role='button' ng-click='applyOptions()' + ng-class='{"btn-success": optionsDirty}') span.glyphicon.glyphicon-ok-circle = ' ' | {{'options_apply' | tr}}