thibaud frere commited on
Commit
a153fdf
·
1 Parent(s): 72cfb5a
app/src/content/chapters/available-blocks.mdx CHANGED
@@ -41,7 +41,9 @@ $x^2 + y^2 = z^2$
41
 
42
  **Block**
43
 
44
- Affichage en bloc, voir l'exemple ci-dessous.
 
 
45
 
46
  <small className="muted">Example</small>
47
  ```mdx
 
41
 
42
  **Block**
43
 
44
+ $$
45
+ \mathrm{Attention}(Q,K,V)=\mathrm{softmax}\!\left(\frac{QK^\top}{\sqrt{d_k}}\right) V
46
+ $$
47
 
48
  <small className="muted">Example</small>
49
  ```mdx
app/src/styles/components/_code.css CHANGED
@@ -55,7 +55,7 @@ html[data-theme='light'] .astro-code {
55
  /* Rehype-injected wrapper for non-Shiki pre blocks */
56
  .code-card { position: relative; }
57
  .code-card .code-copy {
58
- position: absolute; top: 6px; right: 6px; z-index: 3; padding: 6px 12px;
59
  }
60
  .code-card .code-copy svg { width: 16px; height: 16px; display: block; fill: currentColor; }
61
  .code-card pre { margin: 0; margin-bottom: var(--spacing-1);}
@@ -64,8 +64,8 @@ html[data-theme='light'] .astro-code {
64
  .code-card::after {
65
  content: attr(data-language);
66
  position: absolute;
67
- top: 8px; /* default, aligns with copy button */
68
- right: 8px;
69
  font-size: 10px;
70
  line-height: 1;
71
  text-transform: uppercase;
 
55
  /* Rehype-injected wrapper for non-Shiki pre blocks */
56
  .code-card { position: relative; }
57
  .code-card .code-copy {
58
+ position: absolute; top: 6px; right: 6px; z-index: 3; padding: 6px 12px; border: none;
59
  }
60
  .code-card .code-copy svg { width: 16px; height: 16px; display: block; fill: currentColor; }
61
  .code-card pre { margin: 0; margin-bottom: var(--spacing-1);}
 
64
  .code-card::after {
65
  content: attr(data-language);
66
  position: absolute;
67
+ top: 8px;
68
+ right: 56px; /* leave room for copy button */
69
  font-size: 10px;
70
  line-height: 1;
71
  text-transform: uppercase;