language menu, small css fixes

main
Lio Novelli 2024-10-07 19:14:22 +02:00
parent f742e9f414
commit bd5cae98df
3 changed files with 19 additions and 5 deletions

View File

@ -10,7 +10,7 @@ body {
.rainbow, h1 { .rainbow, h1 {
text-align: center; text-align: center;
text-decoration: underline; text-decoration: underline;
font-size: 1rem; font-size: 0.7rem;
font-family: monospace; font-family: monospace;
letter-spacing: 5px; letter-spacing: 5px;
} }
@ -24,20 +24,25 @@ body {
padding: 0.2rem 0.6rem; padding: 0.2rem 0.6rem;
} }
h1 {
font-size: 2.75rem;
font-family: CourierPrime;
}
.rainbow_text_animated_2 { .rainbow_text_animated_2 {
animation: rainbow_animation 7s ease-in-out infinite; animation: rainbow_animation 7s ease-in-out infinite;
font-size: 0.7rem; font-size: 0.5rem;
} }
.rainbow_text_animated_3 { .rainbow_text_animated_3 {
animation: rainbow_animation 8s ease-in-out infinite; animation: rainbow_animation 8s ease-in-out infinite;
font-size: 0.7rem; font-size: 0.5rem;
} }
.nav { .nav {
display: flex; display: flex;
} }
.nav a { .nav a, .title.logo a {
text-decoration: none; text-decoration: none;
font-size: 0.7rem; font-size: 0.7rem;
font-weight: bold; font-weight: bold;
@ -49,6 +54,12 @@ body {
border: none; border: none;
} }
.language-menu {
position: absolute;
top: 10px;
right: 10px;
}
@keyframes rainbow_animation { @keyframes rainbow_animation {
0%,100% { 0%,100% {
background-position: 0 0; background-position: 0 0;

View File

@ -32,7 +32,9 @@
(defvar novelli-html-head-nested-1 (replace-regexp-in-string "../assets" "../../assets" novelli-html-head)) (defvar novelli-html-head-nested-1 (replace-regexp-in-string "../assets" "../../assets" novelli-html-head))
;; Read assets lio.txt ;; Read assets lio.txt
(defvar novelli-header (concat "<div class=\"title\"><pre class=\"rainbow rainbow_text_animated\">" (f-read "assets/lio.txt" 'utf-8) "</pre></div><div class=\"nav\">" (f-read "assets/menu.html" ) "</div>")) (defvar novelli-header (concat "<div class=\"title logo\"><a href=\"index.html\"><pre class=\"rainbow rainbow_text_animated\">" (f-read "assets/lio.txt" 'utf-8) "</pre></a></div>
<div class=\"nav\">" (f-read "assets/menu.html" ) "</div>
<div class=\"language-menu test\"><a class=\"lang\" href=\"/\">SL</a> / <a class=\"lang\" href=\"en/\">EN</a></div>"))
(defvar novelli-header-nested-1 (replace-regexp-in-string "href=\"" "href=\"..\/" novelli-header)) (defvar novelli-header-nested-1 (replace-regexp-in-string "href=\"" "href=\"..\/" novelli-header))
;; Define the publishing project ;; Define the publishing project

View File

@ -1,5 +1,6 @@
#+TITLE: Lio Novelli #+TITLE: Lio Novelli
#+OPTIONS: toc:nil #+OPTIONS: toc:nil
#+OPTIONS: title:nil
#+LANGUAGE: sl #+LANGUAGE: sl
* Dejavnosti * Dejavnosti