partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit b93aa8c242923d8d8338369baf11e70c4f7bc34f
parent 641ffbe44190ae37a82ab4e398d94b8a92ec9ed1
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 11 Oct 2015 13:40:17 +0200

Migrated config images to CSS

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/css/PartKeepr.css | 22++++++++++++++++++++++
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/User/Preferences/DisplayPreferencesPanel.js | 4++--
2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/css/PartKeepr.css b/src/PartKeepr/FrontendBundle/Resources/public/css/PartKeepr.css @@ -68,3 +68,25 @@ background-image: url(../images/partkeepr-logo.png); } +.partkeepr-part-manager-compact { + background-position: top left; + background-repeat: no-repeat; + display:inline-block; + width: 73px; + height: 43px; + line-height: 16px; + vertical-align: text-top; + background-image: url(../images/config/layout-compact.png); +} + +.partkeepr-part-manager-standard { + background-position: top left; + background-repeat: no-repeat; + display:inline-block; + width: 73px; + height: 43px; + line-height: 16px; + vertical-align: text-top; + + background-image: url(../images/config/layout-standard.png); +} diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/User/Preferences/DisplayPreferencesPanel.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/User/Preferences/DisplayPreferencesPanel.js @@ -19,14 +19,14 @@ Ext.define('PartKeepr.DisplayPreferencesPanel', { this.compactLayout = Ext.create("Ext.form.field.Radio", { boxLabel: i18n( - "Compact Layout") + '<br/> <img style="margin-top: 2px; margin-left: 18px;" src="bundles/partkeeprfrontend/images/config/layout-compact.png"/>', + "Compact Layout") + '<br/> <span class="partkeepr-part-manager-compact"/>', name: 'rb', inputValue: 'compact' }); this.standardLayout = Ext.create("Ext.form.field.Radio", { boxLabel: i18n( - "Standard Layout") + '<br/> <img style="margin-top: 2px; margin-left: 18px;" src="bundles/partkeeprfrontend/images/config/layout-standard.png"/>', + "Standard Layout") + '<br/> <span class="partkeepr-part-manager-standard"/>', name: 'rb', inputValue: 'standard' });