From: Radek Czajka Date: Fri, 8 Feb 2013 16:04:43 +0000 (+0100) Subject: change menu icons to backgrounds X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/5ca33d388049e1d2dd7e5fd1a31fdc86ca959e5d change menu icons to backgrounds --- diff --git a/edumed/static/css/base.css b/edumed/static/css/base.css index 126a98f..4d807d7 100644 --- a/edumed/static/css/base.css +++ b/edumed/static/css/base.css @@ -55,36 +55,55 @@ header.main { header.main nav a:hover { color: #ed7831; } header.main nav a:before { + content: " "; display: block; - margin-bottom: .8em; } + margin-bottom: .8em; + width: 2.75em; + height: 2.125em; + text-align: center; + margin: auto; } header.main nav .menu-lekcje:before { - content: url(../img/menu/lekcje.png); } + background: url(../img/menu/lekcje.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-kompetencje:before { - content: url(../img/menu/katalog.png); } + background: url(../img/menu/katalog.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-wspolpraca:before { - content: url(../img/menu/wspolpraca.png); } + background: url(../img/menu/wspolpraca.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-szkolenia:before { - content: url(../img/menu/szkolenia.png); } + background: url(../img/menu/szkolenia.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-wesprzyj:before { - content: url(../img/menu/wesprzyj.png); } + background: url(../img/menu/wesprzyj.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-o-nas:before { - content: url(../img/menu/o-nas.png); } + background: url(../img/menu/o-nas.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-kontakt:before { - content: url(../img/menu/kontakt.png); } + background: url(../img/menu/kontakt.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-lekcje:hover:before { - content: url(../img/menu/lekcje_active.png); } + background: url(../img/menu/lekcje_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-kompetencje:hover:before { - content: url(../img/menu/katalog_active.png); } + background: url(../img/menu/katalog_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-wspolpraca:hover:before { - content: url(../img/menu/wspolpraca_active.png); } + background: url(../img/menu/wspolpraca_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-szkolenia:hover:before { - content: url(../img/menu/szkolenia_active.png); } + background: url(../img/menu/szkolenia_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-wesprzyj:hover:before { - content: url(../img/menu/wesprzyj_active.png); } + background: url(../img/menu/wesprzyj_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-o-nas:hover:before { - content: url(../img/menu/o-nas_active.png); } + background: url(../img/menu/o-nas_active.png) no-repeat 0 0; + background-size: 100%; } header.main nav .menu-kontakt:hover:before { - content: url(../img/menu/kontakt_active.png); } + background: url(../img/menu/kontakt_active.png) no-repeat 0 0; + background-size: 100%; } header.main #tagline { clear: both; float: left; diff --git a/edumed/static/css/base.scss b/edumed/static/css/base.scss index 093c979..b21a555 100644 --- a/edumed/static/css/base.scss +++ b/edumed/static/css/base.scss @@ -75,30 +75,34 @@ header.main { display: block; vertical-align: bottom; font-size: .85em; - } a:hover { color: $oranji; } + a:before { + content: " "; display: block; margin-bottom: .8em; + width: 44*$px; + height: 34*$px; + text-align:center; + margin: auto; } - .menu-lekcje:before { content: url(../img/menu/lekcje.png);} - .menu-kompetencje:before { content: url(../img/menu/katalog.png); } - .menu-wspolpraca:before { content: url(../img/menu/wspolpraca.png);} - .menu-szkolenia:before { content: url(../img/menu/szkolenia.png); } - .menu-wesprzyj:before { content: url(../img/menu/wesprzyj.png);} - .menu-o-nas:before { content: url(../img/menu/o-nas.png); } - .menu-kontakt:before { content: url(../img/menu/kontakt.png); } - .menu-lekcje:hover:before { content: url(../img/menu/lekcje_active.png);} - .menu-kompetencje:hover:before { content: url(../img/menu/katalog_active.png); } - .menu-wspolpraca:hover:before { content: url(../img/menu/wspolpraca_active.png);} - .menu-szkolenia:hover:before { content: url(../img/menu/szkolenia_active.png); } - .menu-wesprzyj:hover:before { content: url(../img/menu/wesprzyj_active.png);} - .menu-o-nas:hover:before { content: url(../img/menu/o-nas_active.png); } - .menu-kontakt:hover:before { content: url(../img/menu/kontakt_active.png); } - + .menu-lekcje:before { background: url(../img/menu/lekcje.png) no-repeat 0 0; background-size: 100%;} + .menu-kompetencje:before { background: url(../img/menu/katalog.png) no-repeat 0 0; background-size: 100%;} + .menu-wspolpraca:before { background: url(../img/menu/wspolpraca.png) no-repeat 0 0; background-size: 100%;} + .menu-szkolenia:before { background: url(../img/menu/szkolenia.png) no-repeat 0 0; background-size: 100%;} + .menu-wesprzyj:before { background: url(../img/menu/wesprzyj.png) no-repeat 0 0; background-size: 100%;} + .menu-o-nas:before { background: url(../img/menu/o-nas.png) no-repeat 0 0; background-size: 100%;} + .menu-kontakt:before { background: url(../img/menu/kontakt.png) no-repeat 0 0; background-size: 100%;} + .menu-lekcje:hover:before { background: url(../img/menu/lekcje_active.png) no-repeat 0 0; background-size: 100%;} + .menu-kompetencje:hover:before { background: url(../img/menu/katalog_active.png) no-repeat 0 0; background-size: 100%;} + .menu-wspolpraca:hover:before { background: url(../img/menu/wspolpraca_active.png) no-repeat 0 0; background-size: 100%;} + .menu-szkolenia:hover:before { background: url(../img/menu/szkolenia_active.png) no-repeat 0 0; background-size: 100%;} + .menu-wesprzyj:hover:before { background: url(../img/menu/wesprzyj_active.png) no-repeat 0 0; background-size: 100%;} + .menu-o-nas:hover:before { background: url(../img/menu/o-nas_active.png) no-repeat 0 0; background-size: 100%;} + .menu-kontakt:hover:before { background: url(../img/menu/kontakt_active.png) no-repeat 0 0; background-size: 100%;} } diff --git a/edumed/static/img/menu/katalog.png b/edumed/static/img/menu/katalog.png index 429c03f..106bdae 100644 Binary files a/edumed/static/img/menu/katalog.png and b/edumed/static/img/menu/katalog.png differ diff --git a/edumed/static/img/menu/katalog_active.png b/edumed/static/img/menu/katalog_active.png index c4de4a7..5485b5e 100644 Binary files a/edumed/static/img/menu/katalog_active.png and b/edumed/static/img/menu/katalog_active.png differ diff --git a/edumed/static/img/menu/kontakt.png b/edumed/static/img/menu/kontakt.png index 193b815..291865d 100644 Binary files a/edumed/static/img/menu/kontakt.png and b/edumed/static/img/menu/kontakt.png differ diff --git a/edumed/static/img/menu/kontakt_active.png b/edumed/static/img/menu/kontakt_active.png index 6e9fcef..892da3c 100644 Binary files a/edumed/static/img/menu/kontakt_active.png and b/edumed/static/img/menu/kontakt_active.png differ diff --git a/edumed/static/img/menu/lekcje.png b/edumed/static/img/menu/lekcje.png index f1aba2f..9989280 100644 Binary files a/edumed/static/img/menu/lekcje.png and b/edumed/static/img/menu/lekcje.png differ diff --git a/edumed/static/img/menu/lekcje_active.png b/edumed/static/img/menu/lekcje_active.png index 3a8865a..47ed591 100644 Binary files a/edumed/static/img/menu/lekcje_active.png and b/edumed/static/img/menu/lekcje_active.png differ diff --git a/edumed/static/img/menu/o-nas.png b/edumed/static/img/menu/o-nas.png index fdc7f4a..00dab37 100644 Binary files a/edumed/static/img/menu/o-nas.png and b/edumed/static/img/menu/o-nas.png differ diff --git a/edumed/static/img/menu/o-nas_active.png b/edumed/static/img/menu/o-nas_active.png index ae004c1..1fc61e9 100644 Binary files a/edumed/static/img/menu/o-nas_active.png and b/edumed/static/img/menu/o-nas_active.png differ diff --git a/edumed/static/img/menu/szkolenia.png b/edumed/static/img/menu/szkolenia.png index cb0e744..97f8362 100644 Binary files a/edumed/static/img/menu/szkolenia.png and b/edumed/static/img/menu/szkolenia.png differ diff --git a/edumed/static/img/menu/szkolenia_active.png b/edumed/static/img/menu/szkolenia_active.png index da0a1d5..271eb8a 100644 Binary files a/edumed/static/img/menu/szkolenia_active.png and b/edumed/static/img/menu/szkolenia_active.png differ diff --git a/edumed/static/img/menu/wesprzyj.png b/edumed/static/img/menu/wesprzyj.png index 28e2037..5182a12 100644 Binary files a/edumed/static/img/menu/wesprzyj.png and b/edumed/static/img/menu/wesprzyj.png differ diff --git a/edumed/static/img/menu/wesprzyj_active.png b/edumed/static/img/menu/wesprzyj_active.png index 1c3b4c8..0402b9f 100644 Binary files a/edumed/static/img/menu/wesprzyj_active.png and b/edumed/static/img/menu/wesprzyj_active.png differ diff --git a/edumed/static/img/menu/wspolpraca.png b/edumed/static/img/menu/wspolpraca.png index 791544d..af1aa43 100644 Binary files a/edumed/static/img/menu/wspolpraca.png and b/edumed/static/img/menu/wspolpraca.png differ diff --git a/edumed/static/img/menu/wspolpraca_active.png b/edumed/static/img/menu/wspolpraca_active.png index 830bcc1..e849d30 100644 Binary files a/edumed/static/img/menu/wspolpraca_active.png and b/edumed/static/img/menu/wspolpraca_active.png differ