Skip to content

Commit d2783fe

Browse files
committed
Service UI rework to support branded sign-in
* OSF branded services use full banner without name * Custom branded services use square logo with name, which is similar to the banner design for the instn SSO page. The only difference is: custom branded service names wraps on narrow screens while the instn SSO one hides optional prefix. * In addition, redesigned the default banner for OSF preprints and OSF registries so they look better after rework. * Finally, added all logos for both stagings and the production custom branded preprints.
1 parent df3699c commit d2783fe

39 files changed

Lines changed: 79 additions & 6 deletions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"@class": "org.apereo.cas.services.RegexRegisteredService",
3+
"serviceId" : "^https?://(localhost|127\\.0\\.0\\.1):5000/(login|logout)/?\\?next=https?(%3A|:)(%2F|/)(%2F|/)((local\\.casarxiv\\.org(%3A|:)4200)|((localhost|127\\.0\\.0\\.1)(%3A|:)5000(%2F|/)preprints(%2F|/)casarxiv))($|%2F|/).*",
4+
"name" : "CasArxiv Preprints",
5+
"description" : "",
6+
"id" : 203948234207241,
7+
"evaluationOrder": 10,
8+
"logo" : "/images/branded/preprints-casarxiv-logo.png",
9+
"attributeReleasePolicy": {
10+
"@class": "org.apereo.cas.services.ReturnAllowedAttributeReleasePolicy",
11+
"allowedAttributes": [
12+
"java.util.ArrayList",
13+
[
14+
"givenName",
15+
"familyName",
16+
"username"
17+
]
18+
]
19+
},
20+
"accessStrategy": {
21+
"@class": "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy",
22+
"delegatedAuthenticationPolicy": {
23+
"@class": "org.apereo.cas.services.DefaultRegisteredServiceDelegatedAuthenticationPolicy",
24+
"allowedProviders": [
25+
"java.util.ArrayList",
26+
[
27+
"cord",
28+
"fakecas",
29+
"okstate",
30+
"orcid"
31+
]
32+
],
33+
"permitUndefined": false
34+
}
35+
}
36+
}

src/main/resources/static/css/cas.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,24 +798,39 @@ body {
798798
max-width: 360px;
799799
}
800800

801-
.service-ui .service-ui-info {
802-
display: none;
801+
.service-ui .service-ui-logo-branded {
802+
max-height: 48px;
803+
max-width: 360px;
803804
}
804805

805806
.service-ui .osf-shield-with-name {
806807
margin: 0 auto;
807808
padding-bottom: 1rem;
808809
}
809810

811+
.osf-shield-with-name-branded {
812+
width: 1px;
813+
}
814+
810815
.osf-shield-with-name .service-ui-logo {
811816
padding-right: 0.5rem;
812817
}
813818

819+
.osf-shield-with-name .service-ui-logo-branded {
820+
padding-right: 1rem;
821+
}
822+
814823
.osf-shield-with-name .service-ui-name {
815824
font-size: 2.25rem;
816825
font-weight: bold;
817826
}
818827

828+
.osf-shield-with-name .service-ui-name-branded {
829+
font-size: 2rem;
830+
font-weight: normal;
831+
white-space: nowrap;
832+
}
833+
819834
.text-with-mdi,
820835
.text-without-mdi {
821836
font-size: 1rem;
@@ -1119,6 +1134,10 @@ body {
11191134
.osf-shield-with-name .service-ui-name {
11201135
font-size: 2rem;
11211136
}
1137+
1138+
.osf-shield-with-name .service-ui-name-branded {
1139+
font-size: 1.75rem;
1140+
}
11221141
}
11231142

11241143
@media all and (max-width: 511.99px) {
@@ -1147,6 +1166,10 @@ body {
11471166
.form-button-inline .delegation-button-label {
11481167
font-size: 1rem;
11491168
}
1169+
1170+
.osf-shield-with-name .service-ui-name-branded {
1171+
white-space: normal;
1172+
}
11501173
}
11511174

11521175
@media all and (max-width: 399.99px) {
@@ -1163,6 +1186,10 @@ body {
11631186
font-size: 1.75rem;
11641187
}
11651188

1189+
.osf-shield-with-name .service-ui-name-branded {
1190+
font-size: 1.5rem;
1191+
}
1192+
11661193
.login-section .mdi-before-text,
11671194
.login-error-card .mdi-before-text {
11681195
display: none;
8.37 KB
Loading
998 Bytes
Loading
5.51 KB
Loading
3.99 KB
Loading
2.76 KB
Loading
20.3 KB
Loading
9.78 KB
Loading
15.1 KB
Loading

0 commit comments

Comments
 (0)