Skip to content

Commit 15d2fb9

Browse files
2018 AAD UI updates (#27)
* Update docs to fix some typos * Update to match new 2018 look
1 parent d199ccf commit 15d2fb9

5 files changed

Lines changed: 851 additions & 59 deletions

File tree

centeredUi/README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ The JavaScript we provide out-of-the-box does not provide two key features you m
4848

4949
1. The JavaScript works for deployments in most major languages. However, if you wish to have your pages work under other languages, you will need to follow the steps below in ```Supporting Non-English Languages```.
5050

51-
2. The new paginated sign in contains a user avatar image. By default, this image is a standard empty user avatar (shown below). To support user avatar lookup, you will need to follow the steps below in ```Supporting User Avatar Lookup```.
52-
53-
![Empty User](./images/empty_user.png)
54-
5551
## Supporting Non-English Languages
5652

5753
In order to support non-English languages, you will need to add translated text for the new UI items that are created by the JavaScript.
@@ -60,15 +56,9 @@ In the code, you should locate the translation table in the function ```GetLocal
6056

6157
Each translation should be mapped to the correct language code. For a reference on language codes, see the ```ISO 639-1 Code``` column in the table at [this resource](https://www.loc.gov/standards/iso639-2/php/code_list.php).
6258

63-
## Supporting User Avatar Lookup
64-
65-
The Azure AD experience includes a user avatar on the password page, on the right side of the banner. AD FS does not have support for the concept of a user avatar, so it's not possible to include this logic out-of-the-box. If you wish to support this behavior, you will have to build a web API that accepts a username, and returns an image. You will then have to update the ```paginatedOnload.js``` code to make the request for the user avatar image, and handle the response.
66-
67-
If you are interested in working with the AD FS Open Source community to build a user avatar web app, please contact [email protected].
68-
6959
## Example
7060

71-
![Login Screenshot](./images/screenshot_paginated.png)
61+
![Login Screenshot](./images/screenshot_paginated2.png)
7262

7363
## Contributing (Special Note)
7464

centeredUi/ThemeCenterBrand.css

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ body {
107107
margin-bottom: 28px;
108108
margin-left: auto;
109109
margin-right: auto;
110-
min-height: 290px;
110+
min-height: 235px;
111111
min-width: 320px;
112112
max-width: 412px;
113113
width: 338px; /*calc(100% - 40px); */
@@ -446,14 +446,13 @@ input[type="radio"], input[type="checkbox"] {
446446
margin-left: 0px;
447447
margin-right: 0px;
448448
margin-top: 0px;
449-
max-width: 100%;
450-
min-width: 165px;
449+
max-width: 100%;
451450
overflow-x: hidden;
452451
overflow-y: hidden;
453452
padding-bottom: 4px;
454453
padding-left: 12px;
455454
padding-right: 12px;
456-
padding-top: 4px;
455+
padding-top: 3px;
457456
position: relative;
458457
text-align: center;
459458
text-indent: 0px;
@@ -490,15 +489,9 @@ input.text {
490489
border-image-slice: 100%;
491490
border-image-source: none;
492491
border-image-width: 1;
493-
border-left-color: rgba(0, 0, 0, 0.6);
494-
border-left-style: solid;
495-
border-left-width: 1px;
496-
border-right-color: rgba(0, 0, 0, 0.6);
497-
border-right-style: solid;
498-
border-right-width: 1px;
499-
border-top-color: rgba(0, 0, 0, 0.6);
500-
border-top-style: solid;
501-
border-top-width: 1px;
492+
border-top: none;
493+
border-left: none;
494+
border-right: none;
502495
box-sizing: border-box;
503496
color: rgb(38, 38, 38);
504497
cursor: auto;
@@ -544,7 +537,10 @@ input.text {
544537
}
545538

546539
input.text:focus {
547-
border: 1px solid #6B6B6B;
540+
border: 1px solid #0067B8;
541+
border-top: none;
542+
border-left: none;
543+
border-right: none;
548544
}
549545

550546
select {
@@ -638,40 +634,31 @@ h5, .tinyText {
638634

639635
.identityBanner{
640636
color: black;
641-
background: #F2F2F2;
642-
text-align: right;
637+
text-align: left;
643638
white-space: nowrap;
644639
line-height: 28px;
645640
height: 28px;
646-
margin:16px -36px;
647-
padding:0px 100px 0px 40px;
648641
font-family: "Segoe UI Webfont",-apple-system,"Helvetica Neue","Lucida Grande","Roboto","Ebrima","Nirmala UI","Gadugi","Segoe Xbox Symbol","Segoe UI Symbol","Meiryo UI","Khmer UI","Tunga","Lao UI","Raavi","Iskoola Pota","Latha","Leelawadee","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Estrangelo Edessa","Microsoft Himalaya","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Yi Baiti","Mongolian Baiti","MV Boli","Myanmar Text","Cambria Math";
649642
font-size: 15px;
650643
font-weight: 300;
651644
white-space: nowrap;
652645
overflow: hidden;
653646
-o-text-overflow: ellipsis;
654647
text-overflow: ellipsis;
655-
}
656-
.identityBannerImage {
657-
height:48px;
658-
width:48px;
659-
margin-top:-17px;
660-
margin-right: -26px;
661-
overflow:hidden;
662-
position: relative;
663-
float: right;
664-
top: -48px;
665-
left: -33px;
648+
padding-left:20px;
666649
}
667650

668651
.submit.backButton{
669652
color: black;
670-
width: 165px;
653+
width: 108px;
671654
float: left;
672655
background: #CCCCCC;
673656
border-color: #CCCCCC;
674657
margin-left: -2px;
658+
height: 32px;
659+
position: relative;
660+
left:110px;
661+
bottom:17px;
675662
}
676663

677664
input[type="submit"].backButton:hover, span.submit.backButton:hover {
@@ -681,16 +668,20 @@ h5, .tinyText {
681668

682669
.submit.nextButton{
683670
margin-left: -2px;
684-
}
685-
686-
.submitMargin.submitModified {
687-
margin-bottom: 60px;
671+
left:229px;
672+
bottom:-40px;
673+
height: 32px;
674+
width: 108px;
688675
}
689676

690677
.submit.modifiedSignIn{
691678
display: block;
692679
width: auto;
693-
float: right;
680+
position: relative;
681+
height: 32px;
682+
width: 108px;
683+
left:229px;
684+
bottom:-15px;
694685
}
695686

696687
#submissionArea{

0 commit comments

Comments
 (0)