ui: dropped the custom font in favor of builtin ones.
- this is faster to load/display and produces less problems with UI on multiple platforms - fixed few ui elements after changes
This commit is contained in:
parent
4fb98500a9
commit
f5e1dbecb4
38 changed files with 57 additions and 119 deletions
|
|
@ -39,7 +39,6 @@ include rhodecode/public/sounds/*.mp3
|
||||||
include rhodecode/public/sounds/*.wav
|
include rhodecode/public/sounds/*.wav
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
recursive-include rhodecode/public/fonts/ProximaNova *
|
|
||||||
recursive-include rhodecode/public/fonts/RCIcons *
|
recursive-include rhodecode/public/fonts/RCIcons *
|
||||||
|
|
||||||
# js
|
# js
|
||||||
|
|
|
||||||
2
docs/static/css/add.css
vendored
2
docs/static/css/add.css
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
.menuselection, .guilabel {
|
.menuselection, .guilabel {
|
||||||
font-size: .90em;
|
font-size: .90em;
|
||||||
font-family: "proximanovaregular", "Proxima Nova Regular", "Proxima Nova", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
font-style: oblique;
|
font-style: oblique;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1249,15 +1249,18 @@ class InitialsGravatar(object):
|
||||||
"""
|
"""
|
||||||
generates the svg metadata for image
|
generates the svg metadata for image
|
||||||
"""
|
"""
|
||||||
|
fonts = [
|
||||||
font_family = ','.join([
|
'-apple-system',
|
||||||
'proximanovaregular',
|
'BlinkMacSystemFont',
|
||||||
'Proxima Nova Regular',
|
'Segoe UI',
|
||||||
'Proxima Nova',
|
'Roboto',
|
||||||
'Arial',
|
'Oxygen-Sans',
|
||||||
'Lucida Grande',
|
'Ubuntu',
|
||||||
|
'Cantarell',
|
||||||
|
'Helvetica Neue',
|
||||||
'sans-serif'
|
'sans-serif'
|
||||||
])
|
]
|
||||||
|
font_family = ','.join(fonts)
|
||||||
if svg_type:
|
if svg_type:
|
||||||
return self.get_img_data_by_type(font_family, svg_type)
|
return self.get_img_data_by_type(font_family, svg_type)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
body {
|
body {
|
||||||
background:#eeeeee;
|
background:#eeeeee;
|
||||||
color: #323232;
|
color: #323232;
|
||||||
font-family: "proximanovaregular","Proxima Nova Regular","Proxima Nova",sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
letter-spacing: .02em;
|
letter-spacing: .02em;
|
||||||
|
|
|
||||||
|
|
@ -800,6 +800,8 @@ input.filediff-collapse-state {
|
||||||
.pill {
|
.pill {
|
||||||
opacity: .8;
|
opacity: .8;
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: normal;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-radius: @border-radius 0 0 @border-radius;
|
border-radius: @border-radius 0 0 @border-radius;
|
||||||
|
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'proximanovaregular';
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Regular.eot'); /* IE9 Compat Modes */
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Regular.woff') format('woff'), /* Modern Browsers */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Regular.ttf') format('truetype');
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: normal;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'proximanovaitalic';
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Italic.eot'); /* IE9 Compat Modes */
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Italic.woff') format('woff'), /* Modern Browsers */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Italic.ttf') format('truetype');
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: normal;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'proximanovasemibold';
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Semibold.eot'); /* IE9 Compat Modes */
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Semibold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Semibold.woff') format('woff'), /* Modern Browsers */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Semibold.ttf') format('truetype');
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: bold;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'proximanovabold';
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Bold.eot'); /* IE9 Compat Modes */
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Bold.woff') format('woff'), /* Modern Browsers */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-Bold.ttf') format('truetype');
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: bold;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: 'proximanovabolditalic';
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-BoldItalic.eot'); /* IE9 Compat Modes */
|
|
||||||
src: url('../fonts/ProximaNova/ProximaNova-BoldItalic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-BoldItalic.woff') format('woff'), /* Modern Browsers */
|
|
||||||
url('../fonts/ProximaNova/ProximaNova-BoldItalic.ttf') format('truetype');
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: bold;
|
|
||||||
text-rendering: optimizeLegibility;
|
|
||||||
}
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
@import 'helpers';
|
@import 'helpers';
|
||||||
@import 'mixins';
|
@import 'mixins';
|
||||||
@import 'rcicons';
|
@import 'rcicons';
|
||||||
@import 'fonts';
|
|
||||||
@import 'variables';
|
@import 'variables';
|
||||||
@import 'bootstrap-variables';
|
@import 'bootstrap-variables';
|
||||||
@import 'form-bootstrap';
|
@import 'form-bootstrap';
|
||||||
|
|
@ -1546,19 +1545,15 @@ table.integrations {
|
||||||
|
|
||||||
.show_more {
|
.show_more {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
width: 0;
|
||||||
|
height: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 4px;
|
content: "";
|
||||||
height: @basefontsize;
|
border: 4px solid;
|
||||||
|
border-right-color: transparent;
|
||||||
&:after {
|
border-bottom-color: transparent;
|
||||||
content: "\00A0\25BE";
|
border-left-color: transparent;
|
||||||
display: inline-block;
|
font-size: 0;
|
||||||
width:10px;
|
|
||||||
line-height: 5px;
|
|
||||||
font-size: 12px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.journal_more .show_more {
|
.journal_more .show_more {
|
||||||
|
|
@ -1569,13 +1564,6 @@ table.integrations {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.open .show_more:after,
|
|
||||||
.select2-dropdown-open .show_more:after {
|
|
||||||
.rotate(180deg);
|
|
||||||
margin-left: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.compare_view_commits .collapse_commit:after {
|
.compare_view_commits .collapse_commit:after {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
content: "\00A0\25B4";
|
content: "\00A0\25B4";
|
||||||
|
|
@ -2250,7 +2238,6 @@ h3.files_location{
|
||||||
|
|
||||||
div.search-feedback-items {
|
div.search-feedback-items {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding:0px 0px 0px 96px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.search-code-body {
|
div.search-code-body {
|
||||||
|
|
|
||||||
|
|
@ -119,11 +119,6 @@
|
||||||
&.has_select2 a {
|
&.has_select2 a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px 0 2px;
|
padding: 10px 0 2px;
|
||||||
|
|
||||||
.show_more {
|
|
||||||
margin-top: -4px;
|
|
||||||
padding-right: .5em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menulabel {
|
.menulabel {
|
||||||
|
|
@ -170,17 +165,13 @@
|
||||||
|
|
||||||
&:hover { color: @grey1; }
|
&:hover { color: @grey1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.show_more {
|
|
||||||
padding-left: .5em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#quick_login_link {
|
#quick_login_link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
.gravatar {
|
.gravatar {
|
||||||
border: 1px solid @grey2;
|
border: 1px solid @grey5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gravatar-login {
|
.gravatar-login {
|
||||||
|
|
@ -205,6 +196,10 @@
|
||||||
&:hover #quick_login_link {
|
&:hover #quick_login_link {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu_link_user {
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before { content: none; }
|
&:before { content: none; }
|
||||||
|
|
@ -649,7 +644,7 @@ ul#context-pages {
|
||||||
border-bottom: 1px solid @grey4;
|
border-bottom: 1px solid @grey4;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
margin-left: -5px;
|
margin-left: -7px;
|
||||||
background: @grey3;
|
background: @grey3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -673,10 +668,11 @@ ul#context-pages {
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_filter_input {
|
.main_filter_input {
|
||||||
padding: 6px;
|
padding: 5px;
|
||||||
min-width: 220px;
|
min-width: 220px;
|
||||||
color: @nav-grey;
|
color: @nav-grey;
|
||||||
background: @grey3;
|
background: @grey3;
|
||||||
|
min-height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main_filter_input::placeholder {
|
.main_filter_input::placeholder {
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,9 @@
|
||||||
|
|
||||||
.icon-more:before { content: '\e815'; } /* '' */
|
.icon-more:before { content: '\e815'; } /* '' */
|
||||||
|
|
||||||
|
.icon-more-linked { cursor: pointer; color: @grey3 }
|
||||||
|
.icon-more-linked:before { content: '\e815'; } /* '' */
|
||||||
|
|
||||||
.icon-git-inv:before { content: '\e80f'; } /* '' */
|
.icon-git-inv:before { content: '\e80f'; } /* '' */
|
||||||
.icon-hg-inv:before { content: '\e810'; } /* '' */
|
.icon-hg-inv:before { content: '\e810'; } /* '' */
|
||||||
.icon-svn-inv:before { content: '\e811'; } /* '' */
|
.icon-svn-inv:before { content: '\e811'; } /* '' */
|
||||||
|
|
|
||||||
|
|
@ -127,11 +127,11 @@ select.select2{height:28px;visibility:hidden}
|
||||||
&:after {
|
&:after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: "\00A0\25BE";
|
content: "\00A0\25BE";
|
||||||
right: .6em;
|
right: .1em;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
top: 0.9em;
|
top: 0.4em;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
font-size: 1em;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ h6, .h6 { font-size: 1em; font-family: @text-bold-italic; }
|
||||||
|
|
||||||
// Breadcrumbs
|
// Breadcrumbs
|
||||||
.breadcrumbs {
|
.breadcrumbs {
|
||||||
&:extend(h1);
|
font-size: @repo-title-fontsize;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,16 +53,16 @@
|
||||||
@text-color: @grey2;
|
@text-color: @grey2;
|
||||||
@repo-title-fontsize: 18px;
|
@repo-title-fontsize: 18px;
|
||||||
|
|
||||||
@text-regular: "proximanovaregular","Proxima Nova Regular", "Proxima Nova", sans-serif;
|
@text-regular: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@text-italic: "proximanovaitalic","Proxima Nova Italic", "Proxima Nova", sans-serif;
|
@text-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@text-bold: "proximanovabold","Proxima Nova Bold", "Proxima Nova", sans-serif;
|
@text-bold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@text-semibold: "proximanovasemibold","Proxima Nova Semibold", "Proxima Nova", sans-serif;
|
@text-semibold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@text-bold-italic: "proximanovabolditalic","Proxima Nova Bold Italic", "Proxima Nova", sans-serif;
|
@text-bold-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
@text-code: "Lucida Console", Menlo, Monaco, monospace;
|
@text-code: 'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;
|
||||||
@text-light: @text-regular;
|
@text-light: @text-regular;
|
||||||
@text-light-italic: @text-italic;
|
@text-light-italic: @text-italic;
|
||||||
// Used for .close buttons
|
// Used for .close buttons
|
||||||
@text-bootstrap: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
@text-bootstrap: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
||||||
|
|
||||||
@panel-title: @basefontsize;
|
@panel-title: @basefontsize;
|
||||||
@panel-footer: @basefontsize;
|
@panel-footer: @basefontsize;
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -82,7 +82,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this); return false">
|
<td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this); return false">
|
||||||
<div class="show_more_col">
|
<div class="show_more_col">
|
||||||
<i class="show_more"></i>
|
<i class="icon-more-linked"></i>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="td-description mid">
|
<td class="td-description mid">
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
title="${_( 'Expand commit message')}"
|
title="${_( 'Expand commit message')}"
|
||||||
>
|
>
|
||||||
<div class="show_more_col">
|
<div class="show_more_col">
|
||||||
<i class="show_more"></i>
|
<i class="icon-more-linked"></i>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="mid td-description">
|
<td class="mid td-description">
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="expand_commit" data-commit-id="${commit.raw_id}" title="${_( 'Expand commit message')}">
|
<td class="expand_commit" data-commit-id="${commit.raw_id}" title="${_( 'Expand commit message')}">
|
||||||
<div class="show_more_col">
|
<div class="show_more_col">
|
||||||
<i class="show_more"></i>
|
<i class="icon-more-linked"></i>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="mid td-description">
|
<td class="mid td-description">
|
||||||
|
|
|
||||||
|
|
@ -57,8 +57,7 @@
|
||||||
%endif
|
%endif
|
||||||
<div class="form search-form">
|
<div class="form search-form">
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<label for="q">${_('Search item')}:</label>
|
${h.text('q', c.cur_query, placeholder="Enter query...")}
|
||||||
${h.text('q', c.cur_query)}
|
|
||||||
|
|
||||||
${h.select('type',c.search_type,[('content',_('File contents')), ('commit',_('Commit messages')), ('path',_('File names')),],id='id_search_type')}
|
${h.select('type',c.search_type,[('content',_('File contents')), ('commit',_('Commit messages')), ('path',_('File names')),],id='id_search_type')}
|
||||||
<input type="submit" value="${_('Search')}" class="btn"/>
|
<input type="submit" value="${_('Search')}" class="btn"/>
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="td-message expand_commit search open" data-commit-id="${h.md5_safe(entry['repository'])+entry['commit_id']}" id="t-${h.md5_safe(entry['repository'])+entry['commit_id']}" title="${_('Expand commit message')}">
|
<td class="td-message expand_commit search open" data-commit-id="${h.md5_safe(entry['repository'])+entry['commit_id']}" id="t-${h.md5_safe(entry['repository'])+entry['commit_id']}" title="${_('Expand commit message')}">
|
||||||
<div class="show_more_col">
|
<div class="show_more_col">
|
||||||
<i class="show_more"></i>
|
<i class="icon-more-linked"></i>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td data-commit-id="${h.md5_safe(entry['repository'])+entry['commit_id']}" id="c-${h.md5_safe(entry['repository'])+entry['commit_id']}" class="message td-description open">
|
<td data-commit-id="${h.md5_safe(entry['repository'])+entry['commit_id']}" id="c-${h.md5_safe(entry['repository'])+entry['commit_id']}" class="message td-description open">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue