[init] typography, css vars, navbar init

This commit is contained in:
Prateeksha Singh
2018-04-13 16:31:23 +05:30
parent ac08e3cb02
commit 2f010aa64d
20 changed files with 183 additions and 29 deletions

View File

@@ -1,8 +0,0 @@
{
"css/frappe-css-bak.css": [
"node_modules/frappe-css/dist/frappe-css.css"
],
"foundation/css/erpnext-org-theme.css": [
"public/less/erpnext-org-theme.less"
]
}

View File

@@ -1,17 +1,34 @@
@import "reset.css";
@import "font.css";
@import "/assets/css/frappe-css.css";
.logo-img {
width: var(--unit-3);
@import "variables.css";
a {
color: var(--dark-grey);
/* */
}
.page-shadow {
box-shadow: 0 0 0.5rem 0 var(--light-grey);
.js-search-form {
position: relative;
}
.search-icon {
fill: var(--dark-grey);
height: 1rem;
width: 1rem;
.js-search-input-icon {
position: absolute;
left: 1rem;
right: 1.5rem;
top: 50%;
transform: translateY(-50%);
}
.js-search-icon {
cursor: pointer;
}
.js-search-input {
margin: 0 0.75rem;
border: 1px solid var(--fn-green-light);
}
.logo {
color: var(--fn-black);
}
.logo:hover {
text-decoration: none;
}
.logo-img {
width: var(--unit-3);
}

View File

@@ -0,0 +1,41 @@
/* This stylesheet generated by Transfonter (https://transfonter.org) on April 13, 2018 10:28 AM */
@font-face {
font-family: 'Metropolis';
src: url('../fonts/Metropolis-Light.woff2') format('woff2'),
url('../fonts/Metropolis-Light.woff') format('woff');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'Metropolis';
src: url('../fonts/Metropolis-Regular.woff2') format('woff2'),
url('../fonts/Metropolis-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Metropolis';
src: url('../fonts/Metropolis-RegularItalic.woff2') format('woff2'),
url('../fonts/Metropolis-RegularItalic.woff') format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Metropolis';
src: url('../fonts/Metropolis-Bold.woff2') format('woff2'),
url('../fonts/Metropolis-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Metropolis Semi';
src: url('../fonts/Metropolis-SemiBold.woff2') format('woff2'),
url('../fonts/Metropolis-SemiBold.woff') format('woff');
font-weight: 600;
font-style: normal;
}

View File

@@ -34,6 +34,7 @@ section {
}
body {
font-family: 'Metropolis', sans-serif;
font-feature-settings: "kern" 1;
font-kerning: normal;
text-rendering: optimizeLegibility;

View File

@@ -0,0 +1,20 @@
/* variables */
:root {
/* colors */
--fn-green: #10ce4c;
--fn-green-dark: #0ab862;
--fn-green-light: #cdf3d6;
--fn-green-light-ultra: #ecf9ef;
--fn-green-muted: #ecf0ee;
--fn-black: #434a44;
--dark-grey: #8c9591;
// --grey: #adb5bb;
// --light-grey: #ebeff2;
// --bg-light: #fafbfc;
// --white: #ffffff;
// --primary-color: var(--purple);
// --border-value: 1px solid var(--light-grey);
}

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.

View File

@@ -0,0 +1,43 @@
Copyright (c) 2015, Chris Simpson, with Reserved Font Name: "Metropolis".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@@ -5,16 +5,17 @@
width: var(--unit-3);
}
.page-shadow {
box-shadow: 0 0 0.5rem 0 var(--light-grey);
.js-search-form {
position: relative;
}
.search-icon {
fill: var(--dark-grey);
height: 1rem;
width: 1rem;
.js-search-input-icon {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
}
.js-search-input {
margin: 0 0.75rem;
}

View File

@@ -4,7 +4,7 @@
<a class="logo flex align-item-center pr1" href="{{ url_prefix }}{{ home_page or "/"}}">
<img class="logo-img" src="/assets/foundation/img/erpnext-logo.svg" alt="Open Source ERP Software">
{% if not parents %}
<span class="pl2">ERPNext.org</span>
<span class="pl1 text-semi-bold">ERPNext.org</span>
{% endif %}
</a>
<!-- breadcrumbs -->
@@ -25,10 +25,46 @@
<!-- breadcrumbs -->
</div>
<div class="right flex align-item-center">
{% include 'foundation/templates/includes/search-box.html' %}
<a class="p1 hover-light-grey border-radius" href="/login">
<a class="hover-light-grey border-radius ml3" href="/login">
Login
</a>
<a class="hover-light-grey border-radius ml3" href="">
My Account
</a>
<span class="arrow-down ml1"></span>
<svg class="js-search-icon icon mh3" viewBox="0 0 22.780561 22.145968" height="83.701294" width="86.099762">
<g transform="translate(-54.311708,-94.201033)">
<path d="m 63.786067,94.201033 c -5.217031,0 -9.474359,4.25784 -9.474359,9.474867 0,5.21703 4.257328,9.47436 9.474359,9.47436 2.056783,0 3.963124,-0.6635 5.519557,-1.78491 l 4.386813,4.38836 a 1.9845977,1.9845977 0 1 0 2.806546,-2.80654 l -4.460708,-4.46071 a 1.9845734,1.9845734 0 0 0 -0.06408,-0.0594 c 0.81602,-1.39869 1.286742,-3.02121 1.286742,-4.75113 0,-5.217027 -4.257844,-9.474867 -9.474871,-9.474867 z m 0,2.646353 c 3.78711,0 6.830073,3.041407 6.830073,6.828514 0,3.78711 -3.042963,6.83007 -6.830073,6.83007 -3.787117,0 -6.82801,-3.04296 -6.82801,-6.83007 0,-3.787107 3.040893,-6.828514 6.82801,-6.828514 z" />
</g>
</svg>
<form class="js-search-form display-none">
<input type="text" class="js-search-input" aria-label="Search erpnext.org"></input>
<svg class="js-search-input-icon icon" viewBox="0 0 22.780561 22.145968" height="83.701294" width="86.099762">
<g transform="translate(-54.311708,-94.201033)">
<path d="m 63.786067,94.201033 c -5.217031,0 -9.474359,4.25784 -9.474359,9.474867 0,5.21703 4.257328,9.47436 9.474359,9.47436 2.056783,0 3.963124,-0.6635 5.519557,-1.78491 l 4.386813,4.38836 a 1.9845977,1.9845977 0 1 0 2.806546,-2.80654 l -4.460708,-4.46071 a 1.9845734,1.9845734 0 0 0 -0.06408,-0.0594 c 0.81602,-1.39869 1.286742,-3.02121 1.286742,-4.75113 0,-5.217027 -4.257844,-9.474867 -9.474871,-9.474867 z m 0,2.646353 c 3.78711,0 6.830073,3.041407 6.830073,6.828514 0,3.78711 -3.042963,6.83007 -6.830073,6.83007 -3.787117,0 -6.82801,-3.04296 -6.82801,-6.83007 0,-3.787107 3.040893,-6.828514 6.82801,-6.828514 z" />
</g>
</svg>
</form>
<svg class="icon"
width="6.0839844mm"
height="4.4414072mm"
viewBox="0 0 6.0839844 4.4414072"
version="1.1">
<g transform="translate(-5.9941406,-91.664062)">
<path
d="M 0 0 L 0 2 L 22.994141 2 L 22.994141 0 L 0 0 z M 0 7.3886719 L 0 9.390625 L 22.994141 9.390625 L 22.994141 7.3886719 L 0 7.3886719 z M 0 14.785156 L 0 16.787109 L 22.994141 16.787109 L 22.994141 14.785156 L 0 14.785156 z "
transform="matrix(0.26458333,0,0,0.26458333,5.9941406,91.664062)"
id="path2530" />
</g>
</svg>
{% include 'foundation/templates/includes/search-box.html' %}
</div>
</div>
</nav>

View File

@@ -1,6 +1,6 @@
<div class="relative mr2">
<div class="relative mr2 display-none">
<input class="pv1 pr2 pl4 border bg-white" type="text" name="query" placeholder="Search this site">
<svg class="search-icon" viewBox="0 0 22.780561 22.145968" height="83.701294" width="86.099762">
<svg class="search-icon icon" viewBox="0 0 22.780561 22.145968" height="83.701294" width="86.099762">
<defs id="defs2" />
<g transform="translate(-54.311708,-94.201033)">
<path d="m 63.786067,94.201033 c -5.217031,0 -9.474359,4.25784 -9.474359,9.474867 0,5.21703 4.257328,9.47436 9.474359,9.47436 2.056783,0 3.963124,-0.6635 5.519557,-1.78491 l 4.386813,4.38836 a 1.9845977,1.9845977 0 1 0 2.806546,-2.80654 l -4.460708,-4.46071 a 1.9845734,1.9845734 0 0 0 -0.06408,-0.0594 c 0.81602,-1.39869 1.286742,-3.02121 1.286742,-4.75113 0,-5.217027 -4.257844,-9.474867 -9.474871,-9.474867 z m 0,2.646353 c 3.78711,0 6.830073,3.041407 6.830073,6.828514 0,3.78711 -3.042963,6.83007 -6.830073,6.83007 -3.787117,0 -6.82801,-3.04296 -6.82801,-6.83007 0,-3.787107 3.040893,-6.828514 6.82801,-6.828514 z" />

View File

@@ -1,4 +1,7 @@
{% extends "foundation/templates/base.html" %}
{% block title %}ERPNext Foundation - Open Source ERP Software{% endblock %}
{% block content %}
<section class="js">
</section>
{% endblock %}