Skip to content

Commit ea96fa4

Browse files
authored
Merge pull request #310 – Pridani ikonek – github, materiály
#310
2 parents 87da56f + 572b786 commit ea96fa4

7 files changed

Lines changed: 504 additions & 73 deletions

File tree

naucse/static/css/nausce.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,18 @@ a:hover {
127127
margin-top: 1em;
128128
}
129129

130+
svg.icon {
131+
width: 1em;
132+
height: 1em;
133+
transform: translate(0px, 0.1em);
134+
overflow: visible;
135+
stroke-width: 2.5px;
136+
stroke: currentColor;
137+
fill: none;
138+
stroke-linecap: butt;
139+
stroke-linejoin: miter;
140+
}
141+
130142
/*************************/
131143

132144
pre {
@@ -155,3 +167,21 @@ code {
155167
padding: 2px 4px;
156168
white-space: pre-wrap;
157169
}
170+
171+
/*** Material lists ***/
172+
173+
ul.material-list {
174+
padding: 0;
175+
padding-left: 1.5em;
176+
}
177+
178+
ul.material-list > li {
179+
list-style-type: none;
180+
text-indent: -1.5em;
181+
}
182+
183+
ul.material-list > li svg.icon {
184+
padding-right: 0.5em;
185+
box-sizing: content-box;
186+
color: black;
187+
}

naucse/templates/_base.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% from "_bytesize_icons.html" import bytesize_icon %}
12
<!doctype html>
23
<html lang="cs">
34
<head>
@@ -21,7 +22,7 @@
2122
<link rel="stylesheet" href="{{url_for('static', filename='css/body.css')}}">
2223
<link rel="stylesheet" href="{{url_for('static', filename='css/pygments-lovelace-style.css')}}">
2324
<link rel="stylesheet" href="{{url_for('static', filename='css/ipython.css')}}">
24-
25+
2526
{% block extra_links %}
2627
{% endblock extra_links%}
2728

@@ -30,7 +31,7 @@
3031
{% endblock %}
3132
</style>
3233
</head>
33-
34+
3435
<body>
3536
<nav class="header">
3637
<ul class="container menu">
@@ -48,7 +49,12 @@
4849
<div class="footer container">
4950
<hr>
5051
<div class="lesson-attribution">
51-
<p>Uprav tuto stránku na <a href="{{ edit_path|edit_link }}">GitHubu</a>.</p>
52+
<p>
53+
Uprav tuto stránku na
54+
<a href="{{ edit_path|edit_link }}">
55+
{{ bytesize_icon('github') }}
56+
GitHubu</a>.
57+
</p>
5258

5359
{% if page is defined and (page.attributions or page.license) %}
5460
{% for a in page.attributions %}

0 commit comments

Comments
 (0)