Skip to content

Commit 4448d0b

Browse files
gcurbelo123NotChristianGarcia
authored andcommitted
Update allows allow button
1 parent 584c7ab commit 4448d0b

File tree

1 file changed

+60
-3
lines changed

1 file changed

+60
-3
lines changed

service/templates/authorize.html

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ <h1>
4444
<button type="submit" name="approve" value="true" required>Connect</button>
4545
</footer>
4646
<div id="always-allow-field">
47-
<label aria-labelledby="always-allow-label">
48-
Always allow?
49-
<input type="checkbox" id="always_allow" name="always_allow">
47+
<label for="always_allow" class="always-allow-label">
48+
<input type="checkbox" id="always_allow" name="always_allow" class="always-allow-checkbox">
49+
<span class="always-allow-text">Always allow?</span>
5050
</label>
5151
</div>
5252
</form>
@@ -95,5 +95,62 @@ <h1>
9595
#auth-form h1 {
9696
margin-bottom: 0; /* override Core-Styles */
9797
}
98+
99+
/* Always allow checkbox styling */
100+
#always-allow-field {
101+
display: flex;
102+
justify-content: center;
103+
align-items: center;
104+
margin-top: 1rem;
105+
margin-bottom: 0;
106+
}
107+
108+
.always-allow-label {
109+
display: inline-flex;
110+
align-items: center;
111+
justify-content: center;
112+
gap: 0.5rem;
113+
cursor: pointer;
114+
padding: 0.5rem 1rem;
115+
border-radius: 0.375rem;
116+
transition: background-color 0.2s ease;
117+
user-select: none;
118+
color: inherit;
119+
vertical-align: middle;
120+
}
121+
122+
.always-allow-label::after,
123+
.always-allow-label::before,
124+
.always-allow-label *::after,
125+
.always-allow-label *::before {
126+
content: none !important;
127+
display: none !important;
128+
}
129+
130+
.always-allow-label:hover {
131+
background-color: rgba(0, 0, 0, 0.03);
132+
}
133+
134+
.always-allow-checkbox {
135+
width: 1.25rem;
136+
height: 1.25rem;
137+
cursor: pointer;
138+
accent-color: #0066cc;
139+
margin: 0;
140+
vertical-align: middle;
141+
align-self: center;
142+
}
143+
144+
.always-allow-text {
145+
display: inline-flex;
146+
align-items: center;
147+
font-size: 1.25rem;
148+
color: #333;
149+
font-weight: 400;
150+
line-height: 1.25rem;
151+
height: 1.25rem;
152+
visibility: visible;
153+
vertical-align: middle;
154+
}
98155
</style>
99156
{% endblock %}

0 commit comments

Comments
 (0)