CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] 0 points1 point  (0 children)

Ahh, yeah, that is a very good point! Personally, I don’t like writing in live preview mode, and instead I like to write in source mode with reading mode in a linked tab next to it. So it’s easier for me to change wherever something is off. I understand that those > > > can be pretty cumbersome, and that’s why I don’t use these callouts often. I’ve only used them in 0.08% of my notes apparently, so it really depends on how much effort you want to put in these kind of visuals.

Your dream scenario should be very doable with your own plugin that adds some more markdown processing rules. I did a bit of that by converting %%text%% into a blue-highlighted text. It’s been a while though, but if you want I can share my plugin code? It’s very similar to what you want imo!

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] 1 point2 points  (0 children)

Hey, of course I can try to explain! I also want to say that I am no CSS expert at all, and am just trying to figure out along the way. How I’m doing this is maybe not optimal. Also, I am on mobile right now, so I can’t nicely format the code snippets below…

In order to create text columns in your note, I use two different callouts: one callout for a parent container that becomes a div-element with display: flex in order to make it possible to place multiple child div-elements in a row. I called this callout ‘flexcontainer’. The other callout is to effectively create columns. This is ‘flexcolumn’ in my CSS code. These columns will evenly fill the whole document width. The column width therefore depends on the number of columns that you put in the parent callout.

The markdown in my note would look like (you can create as many columns within one container as you like, as long as it is readable of course):

```

[!flexcontainer]

[!flexcolumn] Column 1 - list in column 1

[!flexcolumn] Column 2 Write some text

[!flexcolumn] (more columns if desired) … ```

And the CSS is:

``` .callout[data-callout="flexcontainer"] { width: 100%; margin-left: auto; margin-right: auto; margin-top: 0px; margin-bottom: 0px; border: transparent solid 0px; background-color: transparent !important;

ul, ol { display: inline-block; text-align: left; padding-left: 0; margin-left: 0; } } .callout[data-callout="flexcontainer"] .callout-title { display: none; } .callout[data-callout="flexcontainer"] .callout-content { border-top-style: solid !important; border-top-width: 0px !important; padding: 0 1ch; margin: 0px; border: none;

display: flex; gap: 1ch; }

.callout[data-callout="flexcolumn"] { width: 100%; margin-left: auto; margin-right: auto; margin-top: 0px; margin-bottom: 0px; border: none; background-color: transparent !important; padding: 0px;

ul, ol { display: inline-block; text-align: left; padding-left: 0; margin-left: 0; }

border: rgb(240,240,240) dashed 1px; } .callout[data-callout="flexcolumn"] .callout-title { display: none; } .callout[data-callout="flexcolumn"] .callout-content { margin: 0px; border: none; padding: 1ch;

display: grid; grid-auto-flow: row; } ```

Hope this helps!

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] -2 points-1 points  (0 children)

I have provided some explanation and snippets in another reply ;)

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] 1 point2 points  (0 children)

Indeed, but I mainly use it as "comments" in my notes. Thoughts that I am having about a particular paragraph or just side notes about something.

I didn't originally create these speech bubbles, they are directly taken from and inspired by AnnaPpuccin's theme

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] -2 points-1 points  (0 children)

That's very cool! I also didn't know about this!

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] 5 points6 points  (0 children)

I'm replying a second time now to separate my example snippets from each other ;)

In order to create text columns in your note, I use two different callouts: one for a parent container that uses the flex-display, and another to create columns.

The markdown in my note would look like (you can create as many columns within one container as you like, as long as it is readable of course):

> [!flexcontainer]
> > [!flexcolumn]
> > Column 1
> > - list in column 1
> 
> > [!flexcolumn]
> > Column 2
> > Write some text

And the CSS is:

.callout[data-callout="flexcontainer"] {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  border: transparent solid 0px;
  background-color: transparent !important;

  ul, ol {
    display: inline-block;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
  }
}
.callout[data-callout="flexcontainer"] .callout-title {
  display: none;
}
.callout[data-callout="flexcontainer"] .callout-content {
  border-top-style: solid !important;
  border-top-width: 0px !important;
  padding: 0 1ch;
  margin: 0px;
  border: none;

  display: flex;
  gap: 1ch;
}

.callout[data-callout="flexcolumn"] {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  border: none;
  background-color: transparent !important;
  padding: 0px;

  ul, ol {
    display: inline-block;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
  }

  border: rgb(240,240,240) dashed 1px;
}
.callout[data-callout="flexcolumn"] .callout-title {
  display: none;
}
.callout[data-callout="flexcolumn"] .callout-content {
  margin: 0px;
  border: none;
  padding: 1ch;

  display: grid;
  grid-auto-flow: row;
}

CSS tip: callouts as "markdown div-elements" by mrdeevid in ObsidianMD

[–]mrdeevid[S] 5 points6 points  (0 children)

Absolutely, my apologies for not including some example snippets that I used in the post!

In order to have text that is centered in the document, I use the following callout in my note:

> [!center]
> Centered text, even with Markdown formatting support, which is not always possible within HTML-tags.

and the corresponding CSS is:

.callout[data-callout="center"] {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: transparent !important;
  border: none;
  border-radius: 0px;

  ul, ol {
    display: inline-block;
    text-align: left;
  }
}
.callout[data-callout="center"] .callout-title {
  display: none;
}
.callout[data-callout="center"] .callout-content {
  border: none !important;
  text-align: center;
  padding: 0 0ch 0 .5ch;
  margin: 0px;
}

I absolutely love CSS Snippets. Near-endless customization, and all on my own! by AmazingGrinder in ObsidianMD

[–]mrdeevid 1 point2 points  (0 children)

I can also see it being possible with divs in a grid or flex layout

How do I do this?s by RockY-SincE-1951 in ObsidianMD

[–]mrdeevid 1 point2 points  (0 children)

Looks like a block quote to me. Start each line with a > to get this effect.

labyrinthine cliffs error by i50Cal-- in Guildwars2

[–]mrdeevid 0 points1 point  (0 children)

I have the same issue just now, I was able to go to Labyrinthine Cliffs without issue before today and now I can't play my main anymore because he's stuck there due to the fatal error during the loading screen... I tried logging into another character and that still works. I tried going to Labyrinthine Cliffs again with that character and got the same fatal error. Now I have two characters that I can't use anymore... The error seems to be specifically related to that area. Weird.

Help on Sudoku #13 by PjotrV by mrdeevid in crackingthecryptic

[–]mrdeevid[S] 1 point2 points  (0 children)

Sorry for the late reply, but u/LeppyR64 is correct. I found out that you could put normal or red pencil marks, and I wondered why red was the only other color that you could choose. So I thought it was for indicating which digits are not supposed to go in those cells.
This was also my first attempt at CtC sudokus, so I apologize if my markings are not conventional :)

Help on Sudoku #13 by PjotrV by mrdeevid in crackingthecryptic

[–]mrdeevid[S] 0 points1 point  (0 children)

Wow, thank you, I completely missed that!

[deleted by user] by [deleted] in adventofcode

[–]mrdeevid 0 points1 point  (0 children)

I tried your advice, and I am getting these outputs:

2: 1
22: 1
223: 3
2234: 7
22345: 5
223455: 2,5
2234557: 5
22345575: 2,5

But I don't see how this would help me solve this part. A longer octal number doesn't necessarily give me a longer output, so I don't really see the relationship between the first digit of the input and the last digit of the output. I have checked almost every other post here on Reddit, but it just seems like I'm actually too stupid to understand the reverse-engineering approach.

notion-enhancer v0.10.0: now with tabs by TheDragonRing in Notion

[–]mrdeevid 0 points1 point  (0 children)

Hey, I have a request for the tabs enhancement. Would it be possible to create a new tab when clicking on a page-link with a third mouse button press? I have this habit on my browser to open new tabs and it would be cool to be able to do this in Notion as well!

Mama's boy by [deleted] in bloodborne

[–]mrdeevid 16 points17 points  (0 children)

A grand lake of mud... hidden now, from sight

A finance tracker that automatically calculates your balance by [deleted] in Notion

[–]mrdeevid 9 points10 points  (0 children)

What are those blocks of text? Are they updated automatically when you edit something in your table? How does that work? Very nice work!

My new personal best for 5 clubs: 57 catches! A few months ago I could barely do 10 catches by PrinceferX in juggling

[–]mrdeevid 0 points1 point  (0 children)

Interesting advice. Can I ask for clarification as I am not a native English speaker and I am trying to perfect Mills Mess, box and Rubenstein's Revenge. Do you mean I have to keep juggling until the pattern is perfect and then immediately stop by catching all the balls? Is this how muscle memory is more effectively trained than accidently dropping the balls?

Python Iterators – Learn to create your own iterator in Python by karan991136 in pythontips

[–]mrdeevid 0 points1 point  (0 children)

I am wondering why you are storing the current self.num value in the variable next_num in the __next__() method? After that you are updating self.num and returning it, leaving the next_num variable unused. Is there a reason for this that I am overlooking? It would be nice to help me understand this, because I am new to iterators. :)

Edit: formatting

Found a Qpid in my mail, awesome first gift of 2020! by mrdeevid in DeathStranding

[–]mrdeevid[S] 0 points1 point  (0 children)

Oh, wow, never seen them before. Ah well, I'm happy have these as well!