From ba372f046e085618e847c6cece0884fa426c5aa8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 31 Jan 2013 23:03:40 +0100 Subject: added some icons, placeholder for left menu --- module/web/static/css/default/dashboard.less | 40 ------ module/web/static/css/default/style.less | 4 + module/web/static/css/fontawesome.css | 149 +++++++++++++++++------ module/web/static/fonts/fontawesome-webfont.eot | Bin 3412 -> 10228 bytes module/web/static/fonts/fontawesome-webfont.ttf | Bin 2432 -> 3724 bytes module/web/static/fonts/fontawesome-webfont.woff | Bin 1664 -> 2504 bytes module/web/static/fonts/fontawesome.txt | 8 +- module/web/templates/default/base.html | 2 +- module/web/templates/default/dashboard.html | 28 ++++- pavement.py | 4 +- 10 files changed, 153 insertions(+), 82 deletions(-) diff --git a/module/web/static/css/default/dashboard.less b/module/web/static/css/default/dashboard.less index e7e6117da..fd0ebf61e 100644 --- a/module/web/static/css/default/dashboard.less +++ b/module/web/static/css/default/dashboard.less @@ -4,46 +4,6 @@ Dashboard */ -.nav > li > a:hover { - color: @blue; -} - -#dash-nav { - border-bottom: 1px dashed @grey; - padding-bottom: 2px; - margin-bottom: 5px; -} - -#dash-nav > li > a { - margin-top: 5px; -} - -#dash-nav .breadcrumb { - margin: 0; - padding-top: 10px; - padding-bottom: 0; - - .active { - color: @grey; - } - -} - -#dash-nav form { - margin-top: 8px; - margin-bottom: 0; -} - -#dash-nav input, #dash-nav button { - padding-top: 2px; - padding-bottom: 2px; -} - -#dash-nav .dropdown-menu i { - margin-top: 4px; - padding-right: 5px; -} - #dashboard ul { margin: 0; list-style: none; diff --git a/module/web/static/css/default/style.less b/module/web/static/css/default/style.less index ad84804e5..16eaea6b6 100644 --- a/module/web/static/css/default/style.less +++ b/module/web/static/css/default/style.less @@ -297,6 +297,10 @@ header .logo { Actionbar */ +.nav > li > a:hover { + color: @blue; +} + #actionbar-container:before { display: block; content: " "; diff --git a/module/web/static/css/fontawesome.css b/module/web/static/css/fontawesome.css index 6c157dc7e..c6dde169e 100644 --- a/module/web/static/css/fontawesome.css +++ b/module/web/static/css/fontawesome.css @@ -1,51 +1,70 @@ -/* Font Awesome 3.0 - the iconic font designed for use with Twitter Bootstrap - ------------------------------------------------------- - The full suite of pictographic icons, examples, and documentation - can be found at: http://fortawesome.github.com/Font-Awesome/ +/*! + * Font Awesome 3.0.2 + * the iconic font designed for use with Twitter Bootstrap + * ------------------------------------------------------- + * The full suite of pictographic icons, examples, and documentation + * can be found at: http://fortawesome.github.com/Font-Awesome/ + * + * License + * ------------------------------------------------------- + * - The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL + * - Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - + * http://opensource.org/licenses/mit-license.html + * - The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/ + * - Attribution is no longer required in Font Awesome 3.0, but much appreciated: + * "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" - License - ------------------------------------------------------- - • The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL - • Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - - http://opensource.org/licenses/mit-license.html - • The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/ - • Attribution is no longer required in Font Awesome 3.0, but much appreciated: - "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" - - Contact - ------------------------------------------------------- - Email: dave@davegandy.com - Twitter: http://twitter.com/fortaweso_me - Work: Lead Product Designer @ http://kyruus.com - - */ + * Contact + * ------------------------------------------------------- + * Email: dave@davegandy.com + * Twitter: http://twitter.com/fortaweso_me + * Work: Lead Product Designer @ http://kyruus.com + */ @font-face { font-family: 'FontAwesome'; - src: url('../fonts/fontawesome-webfont.eot'); - src: url('../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), - url('../fonts/fontawesome-webfont.woff') format('woff'), - url('../fonts/fontawesome-webfont.ttf') format('truetype'); + src: url('../fonts/fontawesome-webfont.eot?v=3.0.1'); + src: url('../fonts/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'), + url('../fonts/fontawesome-webfont.woff?v=3.0.1') format('woff'), + url('../fonts/fontawesome-webfont.ttf?v=3.0.1') format('truetype'); font-weight: normal; font-style: normal; } /* Font Awesome styles ------------------------------------------------------- */ -/* includes sprites.less reset */ [class^="iconf-"], [class*=" iconf-"] { font-family: FontAwesome; font-weight: normal; font-style: normal; text-decoration: inherit; + -webkit-font-smoothing: antialiased; + + /* sprites.less reset */ display: inline; width: auto; height: auto; line-height: normal; vertical-align: baseline; - background-image: none !important; + background-image: none; background-position: 0% 0%; background-repeat: repeat; + margin-top: 0; +} +/* more sprites.less reset */ +.iconf-white, +.nav-pills > .active > a > [class^="iconf-"], +.nav-pills > .active > a > [class*=" iconf-"], +.nav-list > .active > a > [class^="iconf-"], +.nav-list > .active > a > [class*=" iconf-"], +.navbar-inverse .nav > .active > a > [class^="iconf-"], +.navbar-inverse .nav > .active > a > [class*=" iconf-"], +.dropdown-menu > li > a:hover > [class^="iconf-"], +.dropdown-menu > li > a:hover > [class*=" iconf-"], +.dropdown-menu > .active > a > [class^="iconf-"], +.dropdown-menu > .active > a > [class*=" iconf-"], +.dropdown-submenu:hover > a > [class^="iconf-"], +.dropdown-submenu:hover > a > [class*=" iconf-"] { + background-image: none; } [class^="iconf-"]:before, [class*=" iconf-"]:before { @@ -70,7 +89,12 @@ a [class*=" iconf-"] { display: inline; /* keeps button heights with and without icons the same */ - line-height: .6em; +} +.btn [class^="iconf-"].iconf-large, +.nav [class^="iconf-"].iconf-large, +.btn [class*=" iconf-"].iconf-large, +.nav [class*=" iconf-"].iconf-large { + line-height: .9em; } .btn [class^="iconf-"].iconf-spin, .nav [class^="iconf-"].iconf-spin, @@ -78,14 +102,35 @@ a [class*=" iconf-"] { .nav [class*=" iconf-"].iconf-spin { display: inline-block; } +.nav-tabs [class^="iconf-"], +.nav-pills [class^="iconf-"], +.nav-tabs [class*=" iconf-"], +.nav-pills [class*=" iconf-"] { + /* keeps button heights with and without icons the same */ + +} +.nav-tabs [class^="iconf-"], +.nav-pills [class^="iconf-"], +.nav-tabs [class*=" iconf-"], +.nav-pills [class*=" iconf-"], +.nav-tabs [class^="iconf-"].iconf-large, +.nav-pills [class^="iconf-"].iconf-large, +.nav-tabs [class*=" iconf-"].iconf-large, +.nav-pills [class*=" iconf-"].iconf-large { + line-height: .9em; +} li [class^="iconf-"], -li [class*=" iconf-"] { +.nav li [class^="iconf-"], +li [class*=" iconf-"], +.nav li [class*=" iconf-"] { display: inline-block; width: 1.25em; text-align: center; } li [class^="iconf-"].iconf-large, -li [class*=" iconf-"].iconf-large { +.nav li [class^="iconf-"].iconf-large, +li [class*=" iconf-"].iconf-large, +.nav li [class*=" iconf-"].iconf-large { /* increased font size for iconf-large */ width: 1.5625em; @@ -143,33 +188,45 @@ ul.icons li [class*=" iconf-"] { } [class^="iconf-"].pull-left, [class*=" iconf-"].pull-left { - margin-right: .35em; + margin-right: .3em; } [class^="iconf-"].pull-right, [class*=" iconf-"].pull-right { - margin-left: .35em; + margin-left: .3em; } .btn [class^="iconf-"].pull-left.iconf-2x, .btn [class*=" iconf-"].pull-left.iconf-2x, .btn [class^="iconf-"].pull-right.iconf-2x, .btn [class*=" iconf-"].pull-right.iconf-2x { - margin-top: .35em; + margin-top: .18em; } .btn [class^="iconf-"].iconf-spin.iconf-large, .btn [class*=" iconf-"].iconf-spin.iconf-large { - height: .75em; + line-height: .8em; } .btn.btn-small [class^="iconf-"].pull-left.iconf-2x, .btn.btn-small [class*=" iconf-"].pull-left.iconf-2x, .btn.btn-small [class^="iconf-"].pull-right.iconf-2x, .btn.btn-small [class*=" iconf-"].pull-right.iconf-2x { - margin-top: .45em; + margin-top: .25em; +} +.btn.btn-large [class^="iconf-"], +.btn.btn-large [class*=" iconf-"] { + margin-top: 0; } .btn.btn-large [class^="iconf-"].pull-left.iconf-2x, .btn.btn-large [class*=" iconf-"].pull-left.iconf-2x, .btn.btn-large [class^="iconf-"].pull-right.iconf-2x, .btn.btn-large [class*=" iconf-"].pull-right.iconf-2x { - margin-top: .2em; + margin-top: .05em; +} +.btn.btn-large [class^="iconf-"].pull-left.iconf-2x, +.btn.btn-large [class*=" iconf-"].pull-left.iconf-2x { + margin-right: .2em; +} +.btn.btn-large [class^="iconf-"].pull-right.iconf-2x, +.btn.btn-large [class*=" iconf-"].pull-right.iconf-2x { + margin-left: .2em; } .iconf-spin { display: inline-block; @@ -197,6 +254,26 @@ ul.icons li [class*=" iconf-"] { @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } +} +@-moz-document url-prefix() { + .iconf-spin { + height: .9em; + } + .btn .iconf-spin { + height: auto; + } + .iconf-spin.iconf-large { + height: 1.25em; + } + .btn .iconf-spin.iconf-large { + height: .75em; + } }.iconf-user:before { content: "\f007"; } .iconf-plus-sign:before { content: "\f055"; } .iconf-key:before { content: "\f084"; } +.iconf-inbox:before { content: "\f01c"; } +.iconf-share:before { content: "\f045"; } +.iconf-hdd:before { content: "\f0a0"; } +.iconf-group:before { content: "\f0c0"; } +.iconf-cloud:before { content: "\f0c2"; } +.iconf-sitemap:before { content: "\f0e8"; } diff --git a/module/web/static/fonts/fontawesome-webfont.eot b/module/web/static/fonts/fontawesome-webfont.eot index e2fb87e19..2321edaca 100644 Binary files a/module/web/static/fonts/fontawesome-webfont.eot and b/module/web/static/fonts/fontawesome-webfont.eot differ diff --git a/module/web/static/fonts/fontawesome-webfont.ttf b/module/web/static/fonts/fontawesome-webfont.ttf index 49b9851eb..eb8c0caaa 100644 Binary files a/module/web/static/fonts/fontawesome-webfont.ttf and b/module/web/static/fonts/fontawesome-webfont.ttf differ diff --git a/module/web/static/fonts/fontawesome-webfont.woff b/module/web/static/fonts/fontawesome-webfont.woff index 98faed006..442371fd3 100644 Binary files a/module/web/static/fonts/fontawesome-webfont.woff and b/module/web/static/fonts/fontawesome-webfont.woff differ diff --git a/module/web/static/fonts/fontawesome.txt b/module/web/static/fonts/fontawesome.txt index 74749e4ab..ac89f6e74 100644 --- a/module/web/static/fonts/fontawesome.txt +++ b/module/web/static/fonts/fontawesome.txt @@ -2,4 +2,10 @@ # name, uni from http://icnfnt.com/ user 007 plus-sign 055 -key 084 \ No newline at end of file +key 084 +inbox 01c +share 045 +hdd 0a0 +group 0c0 +cloud 0c2 +sitemap 0e8 \ No newline at end of file diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index bb03eaf81..320732b3f 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -132,7 +132,7 @@
-
Notifcations or something
+
Notifcations or something
{% block actionbar %} {% endblock %} diff --git a/module/web/templates/default/dashboard.html b/module/web/templates/default/dashboard.html index 2400d9bde..91a221cea 100644 --- a/module/web/templates/default/dashboard.html +++ b/module/web/templates/default/dashboard.html @@ -5,6 +5,7 @@ {% block css %} + {% endblock %} {% block require %} @@ -133,9 +134,32 @@
-
- Packages + +
    +
  • Package
  • +
  • More package
  • +
  • many many More package
  • +
+ +
    +
  • Content from
  • +
  • Other user
  • +
  • which they shared
  • +
+ +
    +
  • Content from
  • +
  • remote sites
  • +
  • mega
  • +
  • dropbox
  • +
  • other pyloads
  • +
diff --git a/pavement.py b/pavement.py index 737cc230e..5b8e01260 100644 --- a/pavement.py +++ b/pavement.py @@ -248,9 +248,9 @@ def load_icons(): f.close() from glob import glob - from shutil import move + from shutil import copy for f in glob("/tmp/fontawesome-webfont.*"): - move(f, PROJECT_DIR / "module" / "web" / "static" / "fonts") + copy(f, PROJECT_DIR / "module" / "web" / "static" / "fonts") @task def generate_locale(): -- cgit v1.2.3