Skip to content

Commit 98fa023

Browse files
drop excessive neurohub license styling, keep bare bones
1 parent 5cdb529 commit 98fa023

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

BrainPortal/app/assets/stylesheets/neurohub.scss.erb

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ $DASHBOARD_CARD_MIN_WIDTH: 25;
31693169
=============================================================
31703170
*/
31713171

3172-
#nh_show_license, #nh_portal_license {
3172+
#nh_show_license {
31733173
.status {
31743174
@include text("xs");
31753175
svg {
@@ -3267,12 +3267,39 @@ $DASHBOARD_CARD_MIN_WIDTH: 25;
32673267
}
32683268

32693269
#nh_portal_license {
3270+
.status {
3271+
@include text("xs");
3272+
svg {
3273+
@include mr(1);
3274+
width: 1rem;
3275+
}
3276+
&.success {
3277+
color: $SUCCESS_ALT;
3278+
svg {
3279+
fill: $SUCCESS_ALT;
3280+
stroke: $SUCCESS_ALT;
3281+
}
3282+
}
3283+
&.error {
3284+
color: $ERROR_BG;
3285+
svg {
3286+
fill: $ERROR_BG;
3287+
stroke: $ERROR_BG;
3288+
}
3289+
}
3290+
}
3291+
3292+
32703293
* , *:before, *:after {
32713294
box-sizing: border-box;
32723295
}
32733296
.license-text {
32743297
overflow: auto;
32753298
}
3299+
.btn-section {
3300+
align-self: flex-start;
3301+
flex: unset;
3302+
}
32763303
}
32773304

32783305
/*

BrainPortal/app/views/neurohub_portal/_show_license_text.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<p class="card-label">A license agreement (already signed by you)</p>
3030
<% end %>
3131

32+
<br>
33+
3234
<div class="card-text license-text">
3335
<% content = File.read(Rails.root + "public/licenses/#{@license}.html") rescue "(Error fetching license text)" %>
3436
<% content.gsub!(/<input\s/i, "<INPUT DISABLED CHECKED ") if is_signed %>

0 commit comments

Comments
 (0)