Skip to content

Commit 4e484c9

Browse files
committed
Align controls for proximity.
1 parent b6938df commit 4e484c9

2 files changed

Lines changed: 28 additions & 33 deletions

File tree

popup-app/components/IdpSelect.css

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,25 @@
1+
.custom-idp {
2+
display: flex;
3+
flex-wrap: nowrap;
4+
justify-content: space-between;
5+
margin: 0 0 2em;
6+
}
7+
.custom-idp input {
8+
flex-grow: 2;
9+
margin-right: .5em;
10+
}
11+
112
.idp-list {
213
display: flex;
314
flex-wrap: wrap;
415
justify-content: space-between;
16+
margin: -.25em -.5em;
517
}
6-
718
.idp {
819
flex: 1 100%;
9-
10-
margin: .5em;
20+
margin: .25em;
1121
padding: .75em .5em;
12-
13-
border: none;
1422
border-radius: 10px;
15-
background-color: rgb(61, 109, 211);
16-
color: #fff;
17-
transition: background-color 0.4s;
18-
19-
cursor: pointer;
20-
}
21-
22-
.idp:hover,
23-
.idp:focus {
24-
background-color: rgb(55, 97, 188);
25-
box-shadow: 1px 1px rgb(46, 80, 151);
26-
}
27-
28-
.custom-idp {
29-
display: flex;
30-
flex-wrap: nowrap;
31-
justify-content: space-between;
32-
margin: .5em;
33-
}
34-
35-
.custom-idp input {
36-
flex-grow: 2;
3723
}
3824

3925
@media all and (min-width: 500px) {

popup-app/index.css

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
margin: 20px;
3+
}
4+
15
body, button, input {
26
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
37
font-size: 11pt;
@@ -6,20 +10,25 @@ body, button, input {
610
h1 {
711
font-weight: normal;
812
padding-bottom: 10px;
9-
text-align: center;
1013
}
1114

1215
p {
13-
text-align: center;
16+
margin: .75em 0;
1417
}
1518

1619
button {
17-
border: 1px solid grey;
18-
border-radius: 2px;
19-
padding: 4px;
20-
margin-left: 4px;
20+
font-weight: bold;
21+
border: none;
22+
border-radius: 7px;
23+
background-color: rgb(61, 109, 211);
24+
color: #fff;
25+
transition: background-color 0.4s;
2126
cursor: pointer;
2227
}
28+
button:hover,
29+
button:focus {
30+
background-color: rgb(55, 97, 188);
31+
}
2332

2433
:focus {
2534
outline: none;

0 commit comments

Comments
 (0)