|
44 | 44 | <button type="submit" name="approve" value="true" required>Connect</button> |
45 | 45 | </footer> |
46 | 46 | <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> |
50 | 50 | </label> |
51 | 51 | </div> |
52 | 52 | </form> |
|
95 | 95 | #auth-form h1 { |
96 | 96 | margin-bottom: 0; /* override Core-Styles */ |
97 | 97 | } |
| 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 | +} |
98 | 155 | </style> |
99 | 156 | {% endblock %} |
0 commit comments