emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dr. Arne Babenhauserheide" <arne_bab@web.de>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Adam Porter <adam@alphapapa.net>, emacs-orgmode@gnu.org
Subject: Re: [Worg] CSS improvements
Date: Sun, 24 Mar 2024 10:28:11 +0100	[thread overview]
Message-ID: <87wmpsx9ge.fsf@web.de> (raw)
In-Reply-To: <87plvkf1p0.fsf@localhost>

[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]


Ihor Radchenko <yantar92@posteo.net> writes:

> Adam Porter <adam@alphapapa.net> writes:
>
>>> I am not sure if centered text should stand out.
>>> AFAIU, you want to add this style for the sole purpose of highlighting
>>
>> What is the purpose of centering text if not to make it stand out?
>
> To align text. I am not sure why anything more is necessary - it
> is certainly counter-intuitive for me that "center" means something more
> than just alignment.
>
> If you need extra highlighting, we may introduce a dedicated style and
> apply it via special block.

I defined a "kasten" block for my own page, maybe you can re-use that:

# ELISP
(add-to-list 'org-structure-template-alist '("k" "#+begin_kasten\n?\n#+end_kasten" "<div class=\"kasten\">?</div>"))

# ORG-MODE
# kasten-Environment for full-width boxed text.
#+latex_header: \definecolor{cream}{rgb}{1.0, 0.99, 0.82}
#+latex_header: \provideenvironment{kasten}% level0
#+latex_header:     {\begin{tcolorbox}[colback=cream, sharp corners]%
#+latex_header:         \medskip%
#+latex_header:     }
#+latex_header:     {\medskip\end{tcolorbox}%
#+latex_header:     }

# CSS:
/* full-width boxed text */
.kasten {
    color: #111;
    text-align: justify;
    clear: both;
    border-top: 1px solid gray !important;
    border-right: 0px none gray !important;
    border-left: 0px none gray !important;
    border-bottom: 1px solid gray !important;
    background-color: #f6efca;
    border-top: thin solid gray;
    border-bottom: thin solid gray;
    float: left;
    width: 100%;
    z-index: 1;
    margin-top:20px;
    margin-bottom:20px;
}

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

  reply	other threads:[~2024-03-24  9:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-23 14:35 [Worg] CSS improvements Adam Porter
2024-03-23 14:49 ` Ihor Radchenko
2024-03-24  6:14   ` Adam Porter
2024-03-24  8:56     ` Ihor Radchenko
2024-03-24  9:28       ` Dr. Arne Babenhauserheide [this message]
2024-03-25 14:09       ` Adam Porter
2024-03-26 14:48         ` Ihor Radchenko
2024-03-27  3:20           ` Adam Porter
2024-03-28 11:44             ` Ihor Radchenko
2024-03-28 12:41               ` Adam Porter
2024-03-28 13:18                 ` Ihor Radchenko
2024-03-28 17:53                   ` Adam Porter
2024-03-29  9:48                     ` Ihor Radchenko
2024-03-29 22:38                       ` How to organize tasks about Worg within Worg documents (was: Re: [Worg] CSS improvements) Adam Porter
2024-03-29 23:30                         ` Thomas S. Dye
2024-03-30  2:27                           ` How to organize tasks about Worg within Worg documents Adam Porter
2024-03-30 10:47                         ` How to organize tasks about Worg within Worg documents (was: Re: [Worg] CSS improvements) Ihor Radchenko
2024-03-31 15:43                           ` How to organize tasks about Worg within Worg documents Adam Porter
2024-04-01 11:34                             ` Ihor Radchenko
2024-04-01 18:02                               ` Adam Porter
2024-05-12 12:18                                 ` Ihor Radchenko
2024-05-12 13:42                                   ` Adam Porter
2024-03-26 22:12         ` [Worg] CSS improvements David Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmpsx9ge.fsf@web.de \
    --to=arne_bab@web.de \
    --cc=adam@alphapapa.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).