From 6b09f83fa821312c50f1d20a5253cb96286a7134 Mon Sep 17 00:00:00 2001 From: Guillaume Chanel <Guillaume.Chanel@unige.ch> Date: Mon, 26 Aug 2024 17:08:32 +0200 Subject: [PATCH] Corect css themes --- 9.filesystems/index.html | 9 ++--- css/googlecode.css | 79 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 6 deletions(-) create mode 100644 css/googlecode.css diff --git a/9.filesystems/index.html b/9.filesystems/index.html index 9dfe244..d173f7f 100644 --- a/9.filesystems/index.html +++ b/9.filesystems/index.html @@ -13,11 +13,8 @@ <link rel="stylesheet" href="../../../dist/reveal.css"> <link rel="stylesheet" href="../../../dist/theme/white.css" id="theme"> - <!-- Higlight theme with a fallback on local monokai in case of connexion pb --> - <!-- TODO: the monokai fallback cannot be included has it conflicts on the struct keyword with other themes - check another way to make a fallback --> - <!-- <link rel="stylesheet" href="../../../plugin/highlight/monokai.css" id="highlight-theme"> --> - <link rel="stylesheet" href="https://highlightjs.org/static/demo/styles/googlecode.css" id="highlight-theme"> + <!-- Higlight theme --> + <link rel="stylesheet" href="../css/googlecode.css" id="highlight-theme"> <!-- Add my own theme on top of classical reveal.js theme --> <link rel="stylesheet" href="../css/mytheme.css"> @@ -27,7 +24,7 @@ var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; - link.href = window.location.search.match(/print-pdf/gi) ? '../../../css/print/pdf.css' : '../../../css/print/paper.css'; + link.href = window.location.search.match(/print-pdf/gi) ? '../../../css/print/pdf.scss' : '../../../css/print/paper.scss'; document.getElementsByTagName('head')[0].appendChild(link); </script> <!--[if lt IE 9]> diff --git a/css/googlecode.css b/css/googlecode.css new file mode 100644 index 0000000..135aaf2 --- /dev/null +++ b/css/googlecode.css @@ -0,0 +1,79 @@ +pre code.hljs { + display: block; + overflow-x: auto; + padding: 1em +} +code.hljs { + padding: 3px 5px +} +/* + +Google Code style (c) Aahan Krish <geekpanth3r@gmail.com> + +*/ +.hljs { + background: white; + color: black +} +.hljs-comment, +.hljs-quote { + color: #800 +} +.hljs-keyword, +.hljs-selector-tag, +.hljs-section, +.hljs-title, +.hljs-name { + color: #008 +} +.hljs-variable, +.hljs-template-variable { + color: #660 +} +.hljs-string, +.hljs-selector-attr, +.hljs-selector-pseudo, +.hljs-regexp { + color: #080 +} +.hljs-literal, +.hljs-symbol, +.hljs-bullet, +.hljs-meta, +.hljs-number, +.hljs-link { + color: #066 +} +.hljs-title, +.hljs-doctag, +.hljs-type, +.hljs-attr, +.hljs-built_in, +.hljs-params { + color: #606 +} +.hljs-attribute, +.hljs-subst { + color: #000 +} +.hljs-formula { + background-color: #eee; + font-style: italic +} +.hljs-selector-id, +.hljs-selector-class { + color: #9B703F +} +.hljs-addition { + background-color: #baeeba +} +.hljs-deletion { + background-color: #ffc8bd +} +.hljs-doctag, +.hljs-strong { + font-weight: bold +} +.hljs-emphasis { + font-style: italic +} \ No newline at end of file -- GitLab