diff --git a/static/Georgia.ttf b/static/Georgia.ttf new file mode 100644 index 0000000..5478028 Binary files /dev/null and b/static/Georgia.ttf differ diff --git a/static/Montserrat-Regular.otf b/static/Montserrat-Regular.otf new file mode 100644 index 0000000..c1d1ee3 Binary files /dev/null and b/static/Montserrat-Regular.otf differ diff --git a/static/Roboto-Regular.ttf b/static/Roboto-Regular.ttf new file mode 100644 index 0000000..2c97eea Binary files /dev/null and b/static/Roboto-Regular.ttf differ diff --git a/static/SourceSerifPro-Regular.otf b/static/SourceSerifPro-Regular.otf new file mode 100644 index 0000000..dde2fd4 Binary files /dev/null and b/static/SourceSerifPro-Regular.otf differ diff --git a/static/cookies.js b/static/cookies.js new file mode 100644 index 0000000..3c0c868 --- /dev/null +++ b/static/cookies.js @@ -0,0 +1,24 @@ +function createCookie(name,value,days) { + if (days) { + var date = new Date(); + date.setTime(date.getTime()+(days*24*60*60*1000)); + var expires = "; expires="+date.toGMTString(); + } + else var expires = ""; + document.cookie = name+"="+value+expires+"; path=/"; +} + +function readCookie(name) { + var nameEQ = name + "="; + var ca = document.cookie.split(';'); + for(var i=0;i < ca.length;i++) { + var c = ca[i]; + while (c.charAt(0)==' ') c = c.substring(1,c.length); + if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); + } + return null; +} + +function eraseCookie(name) { + createCookie(name,"",-1); +} \ No newline at end of file diff --git a/static/source-serif-pro.zip b/static/source-serif-pro.zip new file mode 100644 index 0000000..eeaae52 Binary files /dev/null and b/static/source-serif-pro.zip differ diff --git a/static/style.css b/static/style.css index 9e19615..b912ae7 100644 --- a/static/style.css +++ b/static/style.css @@ -5,6 +5,20 @@ html { position: fixed; } +#overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #000; + filter:alpha(opacity=0); + -moz-opacity:0; + -khtml-opacity: 0; + opacity: 0; + z-index: 9999; +} + .tooltip .arrow { display: none; } @@ -46,6 +60,10 @@ html { padding-top: .375rem; line-height: 1.5; color: white; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .toolbar-button:hover { @@ -101,6 +119,20 @@ html { padding: 5px; } +#type-menu { + display:none; + position: fixed; + z-index: 10000; + min-width: 300px; + width: 100%; + max-width: 400px; + height: 250px; + background-color: black; + border: 1px solid gray; + border-radius: 10px; + padding: 10px; +} + @media (prefers-color-scheme: dark) { #article pre { background-color: #002b36; @@ -329,4 +361,42 @@ html { #sidebar.active { margin-left: -250px; } +} + +/* Fonts */ +#type-menu > div.font-choice { + font-size: 24px; + width: 100%; + border-bottom: 1px solid darkgray; +} + +#type-menu > div.font-size-choice { + display: table; + width: 100%; + table-layout: fixed; /* For cells of equal size */ +} + +#type-menu > div.font-size-choice span { + display: table-cell; + text-align: center; +} + +@font-face { + font-family: Georgia; + src: url('Georgia.ttf'); +} + +@font-face { + font-family: Montserrat; + src: url('Montserrat-Regular.otf'); +} + +@font-face { + font-family: Roboto; + src: url('Roboto-Regular.ttf'); +} + +@font-face { + font-family: 'Source Serif Pro'; + src: url('SourceSerifPro-Regular.ttf'); } \ No newline at end of file diff --git a/templates/article.j2 b/templates/article.j2 index 94a7c20..e6fb2b6 100644 --- a/templates/article.j2 +++ b/templates/article.j2 @@ -38,7 +38,7 @@ #} -
#}
-
+
+{% include 'fragments/type_menu.j2' %} {% endblock %} {% block scripts %} {{ super() }} + {% endblock %} \ No newline at end of file diff --git a/templates/close.j2 b/templates/close.j2 index f40c222..6c92263 100644 --- a/templates/close.j2 +++ b/templates/close.j2 @@ -1,3 +1,39 @@ +{% extends "bootstrap/base.html" %} +{% block title %}Read TI Later{% endblock %} + +{% block metas %} +{{super()}} + + + + + +{% endblock %} + +{% block styles %} +{{super()}} + +{% endblock %} + +{% block navbar %} + +{% endblock %} + +{% block content %} +
+
+
+

Link saved!

+

If you can still see this, close it you dummy.

+
+
+
+{% endblock %} + +{% block scripts %} \ No newline at end of file + +{% endblock %} \ No newline at end of file diff --git a/templates/fragments/type_menu.j2 b/templates/fragments/type_menu.j2 new file mode 100644 index 0000000..a71b6c8 --- /dev/null +++ b/templates/fragments/type_menu.j2 @@ -0,0 +1,13 @@ +
+
Georgia
+
Source Serif Pro
+
Helvetica
+
Roboto
+
Montserrat
+
+ A + A + A + A +
+
\ No newline at end of file