made blockquote a blockquote and fixed blockquote styling
This commit is contained in:
parent
459472d2bb
commit
999ff64117
2 changed files with 32 additions and 30 deletions
|
@ -143,34 +143,33 @@ Oh yeah that's right, I got this error when I tried to set this up in docker-com
|
|||
### The Polyline encoding fuckup
|
||||
|
||||
Okay I didn't say this outright before so I'll say it now. Google's documentation sucks [here](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)'s the page describing the polyline encoding in the off chance that's a dead link here's the part that I read, assuming that the rest was context I didn't need
|
||||
```
|
||||
The steps for encoding such a signed value are specified below.
|
||||
|
||||
1. Take the initial signed value:
|
||||
-179.9832104
|
||||
2. Take the decimal value and multiply it by 1e5, rounding the result:
|
||||
-17998321
|
||||
3. Convert the decimal value to binary. Note that a negative value must be calculated using its two's complement by inverting the binary value and adding one to the result:
|
||||
00000001 00010010 10100001 11110001
|
||||
11111110 11101101 01011110 00001110
|
||||
11111110 11101101 01011110 00001111
|
||||
4. Left-shift the binary value one bit:
|
||||
11111101 11011010 10111100 00011110
|
||||
5. If the original decimal value is negative, invert this encoding:
|
||||
00000010 00100101 01000011 11100001
|
||||
6. Break the binary value out into 5-bit chunks (starting from the right hand side):
|
||||
00001 00010 01010 10000 11111 00001
|
||||
7. Place the 5-bit chunks into reverse order:
|
||||
00001 11111 10000 01010 00010 00001
|
||||
8. OR each value with 0x20 if another bit chunk follows:
|
||||
100001 111111 110000 101010 100010 000001
|
||||
9. Convert each value to decimal:
|
||||
33 63 48 42 34 1
|
||||
10. Add 63 to each value:
|
||||
96 126 111 105 97 64
|
||||
11. Convert each value to its ASCII equivalent:
|
||||
`~oia@
|
||||
```
|
||||
> The steps for encoding such a signed value are specified below.
|
||||
>
|
||||
> 1. Take the initial signed value:
|
||||
> -179.9832104
|
||||
> 2. Take the decimal value and multiply it by 1e5, rounding the result:
|
||||
> -17998321
|
||||
> 3. Convert the decimal value to binary. Note that a negative value must be calculated using its two's complement by inverting the binary value and adding one to the result:
|
||||
>00000001 00010010 10100001 11110001
|
||||
>11111110 11101101 01011110 00001110
|
||||
>11111110 11101101 01011110 00001111
|
||||
>4. Left-shift the binary value one bit:
|
||||
>11111101 11011010 10111100 00011110
|
||||
>5. If the original decimal value is negative, invert this encoding:
|
||||
>00000010 00100101 01000011 11100001
|
||||
>6. Break the binary value out into 5-bit chunks (starting from the right hand side):
|
||||
>00001 00010 01010 10000 11111 00001
|
||||
>7. Place the 5-bit chunks into reverse order:
|
||||
>00001 11111 10000 01010 00010 00001
|
||||
>8. OR each value with 0x20 if another bit chunk follows:
|
||||
>100001 111111 110000 101010 100010 000001
|
||||
>9. Convert each value to decimal:
|
||||
>33 63 48 42 34 1
|
||||
>10. Add 63 to each value:
|
||||
>96 126 111 105 97 64
|
||||
>11. Convert each value to its ASCII equivalent:
|
||||
>`~oia@
|
||||
|
||||
here's what I wrote trying to implement that
|
||||
```rs
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
--codeblock-bg: rgb(226,224,222);
|
||||
--blockquote-bg: oklch(70% 0.012 296.97);
|
||||
/*--blockquote-accent-color: oklch(45% 0.1628 256.77);*/
|
||||
--blockquote-accent-color: oklch(96.17% 0.2432 109);
|
||||
--blockquote-accent-color: oklch(74.18% 0.1719 66.77);
|
||||
--highlight-bg: #000;
|
||||
--highlight-fg: #fff;
|
||||
--nav-link-bg-color-active: #118411;
|
||||
|
@ -130,8 +130,11 @@ a:active {
|
|||
|
||||
blockquote {
|
||||
background: var(--blockquote-bg);
|
||||
& > * {
|
||||
border-left: solid var(--blockquote-accent-color);
|
||||
|
||||
&:not(:has(>inner-bq)) {
|
||||
border-left: solid var(--blockquote-accent-color);
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
strong {
|
||||
color:red;
|
||||
|
|
Loading…
Reference in a new issue