From 47c76d20fba73cff8d5e5ef62abac4c446ff9ec9 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Sun, 14 Jul 2019 10:26:15 +0200 Subject: [PATCH] Styles for images --- src/archive.org | 1 - src/assets/css/minimalist.css | 18 +++++- src/demo.org | 19 ++++++ ...raft-professional-lessons-and-opinions.org | 60 ------------------- 4 files changed, 36 insertions(+), 62 deletions(-) delete mode 100644 src/posts/draft-professional-lessons-and-opinions.org diff --git a/src/archive.org b/src/archive.org index 7c60a56..b48dfaa 100644 --- a/src/archive.org +++ b/src/archive.org @@ -3,6 +3,5 @@ #+EMAIL: yann.esposito@gmail.com #+begin_archive -@@html:
  • @@ @@html:@@ 2019-07-12: @@html:@@ [[file:posts/draft-professional-lessons-and-opinions.org][Professional Lessons and Opinions]] @@html:@@ @@html:
  • @@ @@html:
  • @@ @@html:@@ 2019-07-07: @@html:@@ [[file:posts/2019-07-04-static-org-publish.org][Static blog with org-mode]] @@html:@@ @@html:
  • @@ #+end_archive diff --git a/src/assets/css/minimalist.css b/src/assets/css/minimalist.css index ab452d4..b14be41 100644 --- a/src/assets/css/minimalist.css +++ b/src/assets/css/minimalist.css @@ -14,7 +14,14 @@ body { -moz-hyphens:auto; -ms-hyphens:auto; } +#preamble { + border-bottom: solid 1px rgba(255,255,255,0); +} +#postamble { + border-top: solid 1px rgba(255,255,255,0); +} #preamble,#postamble { + padding: 10px 0; opacity: 0.5; } #preamble:focus,#postamble:focus, @@ -37,7 +44,7 @@ p, section, header, footer { h1, h2, h3, h4, h5, h6, pre, code, blockquote, -p, ul, ol, section, header, footer, .figure { +p, ul, ol, section, header, .figure { margin-top: 20px; margin-bottom: 20px; } @@ -133,6 +140,11 @@ img { max-height: 800px; margin: 20px auto; } +p > img, li > img { + max-height: 1em; + margin: 0; + vertical-align: middle; +} footer { font-size: 0.8em; } @@ -203,6 +215,10 @@ a:hover, a:active, a:focus { color: #b58900; } thead { background-color: #073642; color: #93a1a1; } tr:hover { background-color: #073642; } +#postamble:hover, #preamble:hover { + background-color: #002b36; + border-color: #073642; +} h1 { color: #6c71c4;} h2 { color: #d33682;} h3 { color: #dc322f;} diff --git a/src/demo.org b/src/demo.org index 93bec56..4c0f381 100644 --- a/src/demo.org +++ b/src/demo.org @@ -132,6 +132,25 @@ Bad too wide table... - level 2 item - level 2 item +**** Image test + +an image: + +#+CAPTION: Testing include an image +#+NAME: fig:test-image +#+ATTR_HTML: The Experiment +[[../assets/img/a.png]] + + +We could try inline image +[[../assets/img/a.png]] +just to check. + +- [[../assets/img/a.png]] item with img + - [[../assets/img/a.png]] item with img + - [[../assets/img/a.png]] item with img + - [[../assets/img/a.png]] item with img + ***** TODO todo ****** IN-PROGRESS in-progress ******* IN-REVIEW in-review diff --git a/src/posts/draft-professional-lessons-and-opinions.org b/src/posts/draft-professional-lessons-and-opinions.org deleted file mode 100644 index db2976a..0000000 --- a/src/posts/draft-professional-lessons-and-opinions.org +++ /dev/null @@ -1,60 +0,0 @@ -#+TITLE: Professional Lessons and Opinions -#+AUTHOR: Yann Esposito -#+EMAIL: yann.esposito@gmail.com -#+DATE: 2019-07-04 -#+KEYWORDS: programming, blog, org-mode -#+DESCRIPTION: Different divagations about my experiences in the professional world of Software Developper - - #+begin_comment -How to choose a programming language/paradigm to write with. - -- programming is about making the program do what you want it to do. -- not much told, lot harder, and not as natural/intuitive; a program should not - do something you do not want it to do. - - -- programming paradigms, functional is superior because it better fit all - real-life scenarios. -- in Machine Learning, Kolmogorov complexity. Object Oriented is worse than - Functional programming to represent naturally many real life problems. - -What did I learned? Is it a set of specific knowledges or can we discover great -common principles? - -- restart from zero, tabula rasa, what is programming? - #+end_comment - -I could talk to much about that. -But a few short written down lessons. - -If you want to reach productivity and not necessarily enlightenment. -You have to stop learning and use what you know well. -And do not try to use things you don't know. - -In particular, most programming languages/ide/workflow/utils/tools have basic -and advanced features. -If want want to produce and deliver in time. Your best bet is to limit yourselve to -a minimal set of features that give you enough power of combination instead of -looking for a super generic strong solution. - -Clojure for example has: - -- functions -- higher-level functions -- destructuring -- defmethods -- protocols -- macros -- atoms, agents, core.async -- Java FFI - -In fact, writing a fully working app you only need, basic data structure (edn) and functions. - -That's it. - -I was part of a team that created an advanced full featured app using only those. -No magic, just taking care of the state and not writting spaggethi code. - -* How I choose - - Functional programming is superior to imperative and object oriented - languages