Skip to content

Commit ec85490

Browse files
committed
Settings::ApiTokens: Use fluid space scale
1 parent 00199ef commit ec85490

File tree

1 file changed

+27
-32
lines changed

1 file changed

+27
-32
lines changed

app/components/settings/api-tokens.module.css

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
}
1919

2020
.token-list {
21-
margin: 24px 0;
21+
margin: var(--space-m) 0;
2222
padding: 0;
2323
list-style: none;
24-
border-radius: 5px;
24+
border-radius: var(--space-3xs);
2525
background-color: white;
2626
box-shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
2727

2828
> * {
29-
padding: 24px;
29+
padding: var(--space-m);
3030
}
3131

3232
> * + * {
@@ -49,44 +49,44 @@
4949
}
5050

5151
.new-token-form {
52-
padding: 24px;
53-
border-radius: 6px;
52+
padding: var(--space-m);
53+
border-radius: var(--space-3xs);
5454
background-color: white;
5555
box-shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
56-
margin: 24px 0;
56+
margin-top: var(--space-m);
5757

5858
.input {
59-
padding: 8px;
59+
padding: var(--space-2xs);
6060
width: 100%;
6161
border: 1px solid #ada796;
62-
border-radius: 4px;
62+
border-radius: var(--space-3xs);
6363
}
6464
}
6565

6666
.actions {
67-
margin-top: 12px;
67+
margin-top: var(--space-s);
6868
display: flex;
6969
align-items: center;
7070
}
7171

7272
.spinner {
73-
margin-left: 10px
73+
margin-left: var(--space-xs);
7474
}
7575

7676
.save-button {
7777
composes: yellow-button small from '../../styles/shared/buttons.module.css';
7878
flex-grow: 1;
79-
border-radius: 4px;
79+
border-radius: var(--space-3xs);
8080
}
8181

8282
.revoke-button {
8383
composes: tan-button small from '../../styles/shared/buttons.module.css';
8484
flex-grow: 1;
85-
border-radius: 4px;
85+
border-radius: var(--space-3xs);
8686
}
8787

8888
.new-token {
89-
margin: 24px 0;
89+
margin-top: var(--space-s);
9090
}
9191

9292
.new-token-explainer {
@@ -100,19 +100,19 @@
100100
background: var(--main-color);
101101
color: white;
102102
font-family: var(--font-monospace);
103-
border-radius: 4px;
104-
margin-top: 16px;
103+
border-radius: var(--space-3xs);
104+
margin-top: var(--space-xs);
105105
}
106106

107107
.token-value {
108-
padding: 20px;
108+
padding: var(--space-s);
109109
user-select: all;
110110
}
111111

112112
.copy-button {
113113
composes: button-reset from '../../styles/shared/buttons.module.css';
114114
align-self: stretch;
115-
padding: 0 16px;
115+
padding: 0 var(--space-s);
116116
cursor: pointer;
117117

118118
&:hover {
@@ -125,18 +125,18 @@
125125
}
126126

127127
.copy-button-icon {
128-
width: 24px;
129-
height: 24px;
128+
width: auto;
129+
height: 1.3em;
130130
}
131131

132132
.empty-state {
133133
display: grid;
134134
place-items: center;
135135
align-content: center;
136-
margin: 24px 0;
137-
padding: 64px;
136+
margin: var(--space-m) 0;
137+
padding: var(--space-xl-2xl);
138138
border: 2px black dashed;
139-
border-radius: 5px;
139+
border-radius: var(--space-3xs);
140140
background-color: white;
141141
box-shadow: 0 2px 3px hsla(51, 50%, 44%, .35);
142142
}
@@ -147,24 +147,19 @@
147147

148148
.empty-state-button {
149149
composes: yellow-button small from '../../styles/shared/buttons.module.css';
150-
margin-top: 20px;
150+
margin-top: var(--space-m);
151151
border-radius: 4px;
152152
}
153153

154154
@media (--min-s) {
155155
.new-token-form {
156156
display: grid;
157157
grid-template-columns: 1fr auto;
158-
align-items: center;
159-
padding: 16px 24px;
160-
161-
.input {
162-
padding: 8px;
163-
margin-right: 16px;
164-
}
158+
align-items: stretch;
159+
padding: var(--space-s) var(--space-m);
165160

166161
.actions {
167-
margin: 0 0 0 16px;
162+
margin: 0 0 0 var(--space-xs);
168163
}
169164
}
170165

@@ -181,7 +176,7 @@
181176
.actions {
182177
grid-area: actions;
183178
align-self: start;
184-
margin: 0 0 0 16px;
179+
margin: 0 0 0 var(--space-xs);
185180
}
186181

187182
.new-token {

0 commit comments

Comments
 (0)