Compare commits
5 Commits
c1aad5e6e2
...
5febe9a8b8
Author | SHA1 | Date |
---|---|---|
Frédéric Péters | 5febe9a8b8 | |
Frédéric Péters | 7cf72da19c | |
Frédéric Péters | 76423b24c2 | |
Frédéric Péters | e2a1d668a5 | |
Frédéric Péters | 22caa7a2d4 |
|
@ -1093,12 +1093,10 @@ ul#sidepage-menu li a {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
$string-color: str-slice($primary-color + '', 2);
|
|
||||||
|
|
||||||
$appicons: add, agendas, announces, bankcard, book, calendar, cards, categories, clock, counter, data, facturier, forms, gis, grid, home, identity-management, lingo, mail, management, organizational-units, passerelle, password, phone, portal, portal-agent, porte-doc, roles, security, services, settings, statistics, studio, submission, system, texts, theme, users, workflows;
|
$appicons: add, agendas, announces, bankcard, book, calendar, cards, categories, clock, counter, data, facturier, forms, gis, grid, home, identity-management, lingo, mail, management, organizational-units, passerelle, password, phone, portal, portal-agent, porte-doc, roles, security, services, settings, statistics, studio, submission, system, texts, theme, users, workflows;
|
||||||
|
|
||||||
@each $appicon in $appicons {
|
@each $appicon in $appicons {
|
||||||
ul#sidepage-menu li a.icon-#{$appicon} { background-image: url(icons/#{$appicon}.small.#{$string-color}.png); }
|
ul#sidepage-menu li a.icon-#{$appicon} { background-image: url(icons/#{$appicon}.small.png); }
|
||||||
ul.apps li.icon-#{$appicon} a { background-image: url(icons/#{$appicon}.large.png); }
|
ul.apps li.icon-#{$appicon} a { background-image: url(icons/#{$appicon}.large.png); }
|
||||||
ul.apps li.icon-#{$appicon} a:hover { background-image: url(icons/#{$appicon}.large-hover.png); }
|
ul.apps li.icon-#{$appicon} a:hover { background-image: url(icons/#{$appicon}.large-hover.png); }
|
||||||
}
|
}
|
||||||
|
@ -1377,6 +1375,29 @@ body .leaflet-attribution-flag {
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-skip {
|
||||||
|
position: absolute;
|
||||||
|
ul, li {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
position: absolute;
|
||||||
|
line-height: calc(#{$header-height} - 20px);
|
||||||
|
height: calc(#{$header-height} - 20px);
|
||||||
|
top: 4px;
|
||||||
|
left: calc(#{$sidepage-width} + 60px);
|
||||||
|
width: 20rem;
|
||||||
|
z-index: 1000;
|
||||||
|
@extend %button;
|
||||||
|
}
|
||||||
|
a:not(:focus) {
|
||||||
|
@extend .sr-only;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@import 'grid';
|
@import 'grid';
|
||||||
@import 'fx-grid';
|
@import 'fx-grid';
|
||||||
@import 'jqueryui';
|
@import 'jqueryui';
|
||||||
|
|
|
@ -24,6 +24,11 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body data-gadjo="true" {% block bodyargs %}{% endblock %}>
|
<body data-gadjo="true" {% block bodyargs %}{% endblock %}>
|
||||||
|
<div id="nav-skip">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#main-content">{% trans "Go to content" %}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div id="top">
|
<div id="top">
|
||||||
{% block sidepage %}
|
{% block sidepage %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -19,6 +19,14 @@
|
||||||
<div class="content"
|
<div class="content"
|
||||||
{% if field.id_for_label %}aria-labelledby="{{ field.id_for_label }}_title"{% endif %}
|
{% if field.id_for_label %}aria-labelledby="{{ field.id_for_label }}_title"{% endif %}
|
||||||
{% block widget-attrs %}{% endblock %}>
|
{% block widget-attrs %}{% endblock %}>
|
||||||
|
{% block widget-hint %}
|
||||||
|
{% if field.help_text %}
|
||||||
|
<div class="hint">{{ field.help_text|safe }}</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block widget-control %}
|
||||||
|
{{ field }}
|
||||||
|
{% endblock %}
|
||||||
{% block widget-error %}
|
{% block widget-error %}
|
||||||
{% if field.errors %}
|
{% if field.errors %}
|
||||||
<div class="error"><p>
|
<div class="error"><p>
|
||||||
|
@ -28,14 +36,6 @@
|
||||||
</p></div>
|
</p></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block widget-control %}
|
|
||||||
{{ field }}
|
|
||||||
{% endblock %}
|
|
||||||
{% block widget-hint %}
|
|
||||||
{% if field.help_text %}
|
|
||||||
<div class="hint">{{ field.help_text|safe }}</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
{% block widget-bottom %}{% endblock %}
|
{% block widget-bottom %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
10
setup.py
10
setup.py
|
@ -142,19 +142,13 @@ class build_icons(Command):
|
||||||
if not os.path.exists(destpath):
|
if not os.path.exists(destpath):
|
||||||
os.mkdir(destpath)
|
os.mkdir(destpath)
|
||||||
variants_applications = {
|
variants_applications = {
|
||||||
'small': {'colour': 'e7e7e7', 'width': '40'},
|
'small': {'colour': '386ede', 'width': '40'},
|
||||||
'small.white': {'colour': 'ffffff', 'width': '40'},
|
|
||||||
'small.386ede': {'colour': '386ede', 'width': '40'},
|
|
||||||
'small.ff375e': {'colour': 'ff375e', 'width': '40'},
|
|
||||||
'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
|
|
||||||
'large': {'colour': 'e7e7e7', 'width': '80'},
|
'large': {'colour': 'e7e7e7', 'width': '80'},
|
||||||
'large-hover': {'colour': 'bebebe', 'width': '80'},
|
'large-hover': {'colour': 'bebebe', 'width': '80'},
|
||||||
}
|
}
|
||||||
variants_actions = {
|
variants_actions = {
|
||||||
|
'small': {'colour': '386ede', 'width': '40'},
|
||||||
'small.white': {'colour': 'ffffff', 'width': '40'},
|
'small.white': {'colour': 'ffffff', 'width': '40'},
|
||||||
'small.386ede': {'colour': '386ede', 'width': '40'},
|
|
||||||
'small.ff375e': {'colour': 'ff375e', 'width': '40'},
|
|
||||||
'small.6f2b92': {'colour': '6f2b92', 'width': '40'},
|
|
||||||
'hover': {'colour': '2b2b2b', 'width': '40'},
|
'hover': {'colour': '2b2b2b', 'width': '40'},
|
||||||
}
|
}
|
||||||
for basepath, dirnames, filenames in os.walk('icons'):
|
for basepath, dirnames, filenames in os.walk('icons'):
|
||||||
|
|
Loading…
Reference in New Issue