Changeset - 11affd72f64c
[Not reviewed]
default
0 3 0
Mads Kiilerich - 7 years ago 2018-12-11 01:40:17
mads@kiilerich.com
front-end: Drop lessc --relative-urls

The Fontello font paths in kallithea/public/fontello/css/kallithea.css were
adjusted by the relative urls option - instead we now hack the source.

The Bootstrap Glyph icons are not used - set their name to make it clear they
intentionally not are used.
3 files changed with 12 insertions and 8 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/kallithea_cli_front_end.py
Show inline comments
 
@@ -56,13 +56,13 @@ def front_end_build(install_deps, genera
 
                    '-f', 'html',
 
                    '-a', '.code-highlight'],
 
                    stdout=f)
 
        lesscpath = os.path.join(front_end_dir, 'node_modules', '.bin', 'lessc')
 
        lesspath = os.path.join(public_dir, 'less', 'main.less')
 
        csspath = os.path.join(public_dir, 'css', 'style.css')
 
        subprocess.check_call([lesscpath, '--relative-urls', '--source-map',
 
        subprocess.check_call([lesscpath, '--source-map',
 
                '--source-map-less-inline', lesspath, csspath],
 
                cwd=front_end_dir)
 

	
 
        click.echo("Preparing Bootstrap JS")
 
        shutil.copy(os.path.join(front_end_dir, 'node_modules', 'bootstrap', 'dist', 'js', 'bootstrap.js'), os.path.join(public_dir, 'js', 'bootstrap.js'))
 

	
kallithea/public/fontello/css/kallithea.css
Show inline comments
 
@charset "UTF-8";
 

	
 
 @font-face {
 
  font-family: 'kallithea';
 
  src: url('../font/kallithea.eot?96450582');
 
  src: url('../font/kallithea.eot?96450582#iefix') format('embedded-opentype'),
 
       url('../font/kallithea.woff2?96450582') format('woff2'),
 
       url('../font/kallithea.woff?96450582') format('woff'),
 
       url('../font/kallithea.ttf?96450582') format('truetype'),
 
       url('../font/kallithea.svg?96450582#kallithea') format('svg');
 
  /* NOTE: relative font paths have been adjusted to compensate for where the */
 
  /*       content of this CSS file ends up being used */
 
  src: url('../fontello/font/kallithea.eot?96450582');
 
  src: url('../fontello/font/kallithea.eot?96450582#iefix') format('embedded-opentype'),
 
       url('../fontello/font/kallithea.woff2?96450582') format('woff2'),
 
       url('../fontello/font/kallithea.woff?96450582') format('woff'),
 
       url('../fontello/font/kallithea.ttf?96450582') format('truetype'),
 
       url('../fontello/font/kallithea.svg?96450582#kallithea') format('svg');
 
  font-weight: normal;
 
  font-style: normal;
 
}
 
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
 
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
 
/*
 
@media screen and (-webkit-min-device-pixel-ratio:0) {
 
  @font-face {
 
    font-family: 'kallithea';
 
    src: url('../font/kallithea.svg?96450582#kallithea') format('svg');
 
    src: url('../fontello/font/kallithea.svg?96450582#kallithea') format('svg');
 
  }
 
}
 
*/
 
 
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
 
  font-family: "kallithea";
kallithea/public/less/kallithea-variables.less
Show inline comments
 
@@ -38,12 +38,14 @@
 
@panel-heading-padding:             5px 15px; /* default: 10px 15px */
 
@panel-primary-text:                @kallithea-theme-inverse-color;
 
@panel-primary-heading-bg:          @kallithea-theme-inverse-bg;
 
@panel-primary-border:              @panel-primary-heading-bg;
 
@headings-font-weight:              700;
 
@table-cell-padding:                2px 4px;
 
@icon-font-path:                    ; /* no glyphicons */
 
@icon-font-name:                    none;
 

	
 
/* custom variables */
 
@highlight-color:                   #FAFFA6;
 
@highlight-line-color:              #DDE7EF;
 
@add-bg-color:                      #BBFFBB;
 
@change-bg-color:                   #DDDDDD;
0 comments (0 inline, 0 general)