Skip to content

Commit 7415a8d

Browse files
committed
minor adjustments
1 parent 5c0dd5e commit 7415a8d

3 files changed

Lines changed: 27 additions & 30 deletions

File tree

gator/experimental/erc-7715-request-permissions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const walletClient = createWalletClient({
9292
</Tabs>
9393

9494
<details>
95-
<summary> ERC-7715 request permission sample </summary>
96-
95+
<summary>ERC-7715 request permission sample</summary>
96+
<div>
9797
Here's what your ERC-7715 native token streaming allowance request looks like:
9898

9999
```ts
@@ -120,6 +120,7 @@ export const walletClient = createWalletClient({
120120
```
121121

122122
Learn more about the [ERC-7715 permission schema](https://eip.tools/eip/7715).
123+
</div>
123124
</details>
124125

125126

gator/how-to/create-delegation/restrict-delegation.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ const caveats = caveatBuilder
6767
```
6868

6969
<details>
70-
<summary><b>Important considerations when using caveat enforcers</b></summary>
71-
<p>
72-
73-
- Delegations without caveats are entirely permissive.
74-
It is crucial to add appropriate caveats to restrict the delegated authority sufficiently.
75-
Failing to do so could result in unintended access or actions.
76-
- Caveat enforcers safeguard the execution process but do not guarantee a final state post-redemption.
77-
Always combine caveat enforcers thoughtfully to create comprehensive protection.
78-
- When using multiple caveat enforcers that modify external contract states, the order matters.
79-
For example, if you include both [`NativeBalanceChangeEnforcer`](../../reference/caveats.md#nativebalancechange) to ensure a balance has increased and
80-
[`NativeTokenPaymentEnforcer`](../../reference/caveats.md#nativetokenpayment) to deduct from that balance,
81-
executing `NativeTokenPaymentEnforcer` first might cause `NativeBalanceChangeEnforcer` to fail validation.
82-
Consider the sequence of enforcers carefully when creating delegations with interdependent caveats.
83-
84-
</p>
70+
<summary>Important considerations when using caveat enforcers</summary>
71+
<div>
72+
73+
- Delegations without caveats are entirely permissive.
74+
It is crucial to add appropriate caveats to restrict the delegated authority sufficiently.
75+
Failing to do so could result in unintended access or actions.
76+
- Caveat enforcers safeguard the execution process but do not guarantee a final state post-redemption.
77+
Always combine caveat enforcers thoughtfully to create comprehensive protection.
78+
- When using multiple caveat enforcers that modify external contract states, the order matters.
79+
For example, if you include both [`NativeBalanceChangeEnforcer`](../../reference/caveats.md#nativebalancechange) to ensure a balance has increased and
80+
[`NativeTokenPaymentEnforcer`](../../reference/caveats.md#nativetokenpayment) to deduct from that balance,
81+
executing `NativeTokenPaymentEnforcer` first might cause `NativeBalanceChangeEnforcer` to fail validation.
82+
Consider the sequence of enforcers carefully when creating delegations with interdependent caveats.
83+
84+
</div>
8585
</details>
8686

8787
For convenience, you can also pass the `CaveatBuilder` directly to the various helper methods for creating a delegation. For example:

src/components/SidebarVersionDropdown/SidebarVersionDropdown.module.css

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
.dropdown {
22
position: relative;
3-
padding-left: var(--ifm-menu-link-padding-horizontal);
4-
margin-top: 0.5rem;
5-
font-family: var(--font-mm-sans);
3+
font-family: var(--ifm-font-family-base);
64
border-bottom: 1px solid var(--ifm-toc-border-color);
7-
padding-bottom: 1rem;
8-
margin-bottom: 1rem;
5+
padding: 0.4rem 0;
96
}
107

118
.versionItem {
129
display: flex;
1310
align-items: center;
14-
font-size: 1.4rem;
11+
font-size: 1.7rem;
1512
font-weight: 500;
1613
cursor: pointer;
1714
color: var(--color-text);
1815
user-select: none;
1916
width: 100%;
20-
padding-left: 0px;
21-
padding-right: 0px;
17+
padding: 0.6rem 2.4rem;
2218
}
2319

2420
.versionItem:hover {
@@ -28,9 +24,7 @@
2824
.chevron {
2925
font-size: 2.2rem;
3026
line-height: 1;
31-
display: inline-block;
32-
margin-left: 0rem;
33-
padding-right: 20px;
27+
padding: 1rem;
3428
}
3529

3630
.label {
@@ -47,14 +41,16 @@
4741
border-radius: 4px;
4842
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
4943
margin-top: 0.3rem;
44+
padding-bottom: 1rem;
5045
z-index: 100;
5146
width: 100%;
5247
min-width: 180px;
5348
}
5449

5550
.menuItem {
56-
padding: 0.75rem 1rem;
57-
font-size: 1.4rem;
51+
padding: 0.6rem 2.4rem;
52+
font-size: 1.5rem;
53+
font-weight: 400;
5854
cursor: pointer;
5955
color: var(--color-text);
6056
background: var(--general-white);

0 commit comments

Comments
 (0)