Skip to content

Commit

Permalink
Update selection radio card styling
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Jan 18, 2021
1 parent dda19dc commit b7b8c3d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
1 change: 1 addition & 0 deletions modules/theme/src/themes/default/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
@doveGray : #616161;
@aliceBlue : #f7fcff;
@alabaster : #f7f7f7;
@pureBlack : #000000;

/*-------------------
Page
Expand Down
25 changes: 20 additions & 5 deletions modules/theme/src/themes/default/views/card.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@
&.radio-selection-card {
border: none !important;
box-shadow: none !important;
background: transparent;
background: @selectionCardWithRadioBackground;
border-left: @selectionCardWithRadioBorderLeft !important;

.integrate-radio {
flex-grow: 0;
Expand All @@ -379,20 +380,33 @@
.ui.radio.checkbox label::before {
width: 20px !important;
height: 20px !important;
border-color: @nobel !important;
border-color: #c8c8c8 !important;
border-width: 2px !important;
}
}

&.card-selected {
box-shadow: none !important;
background: @galleryGray;
background: @selectionCardWithRadioSelectedBackground;
border-left: @selectionCardWithRadioSelectedBorderLeft !important;

.integrate-radio {
.ui.radio.checkbox label::before {
border-color: @primaryColor !important;
}
}

.selection-card-content {
.meta {
span {
color: @selectionCardWithRadioSelectedSubheaderColor;
}
}
}

&:hover {
background: @selectionCardWithRadioSelectedBackground;
}
}

.selection-card-content {
Expand All @@ -405,7 +419,8 @@
font-size: 1.4em;

span {
color: @primaryColor;
color: @selectionCardWithRadioHighlightedHeaderColor;
font-weight: @selectionCardWithRadioHighlightedHeaderFontWeight;
}
}

Expand All @@ -417,7 +432,7 @@
}

&:hover {
background: @galleryGray;
background: @selectionCardWithRadioHoverBackground;
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions modules/theme/src/themes/default/views/card.variables
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ Recent Application Card
@selectionCardDescriptionMinHeight: 20px;
@settingsCardTopActionPanelBackground: @lightPageBackground;

/* Selection card with radio button */
@selectionCardWithRadioBackground: @galleryGray;
@selectionCardWithRadioBorderLeft: 4px solid transparent;

@selectionCardWithRadioSelectedBackground: #d6d6d6;
@selectionCardWithRadioSelectedBorderLeft: 4px solid @primaryColor;
@selectionCardWithRadioHoverBackground: @selectionCardWithRadioSelectedBackground;
@selectionCardWithRadioHighlightedHeaderColor: @pureBlack;
@selectionCardWithRadioHighlightedHeaderFontWeight: 600;
@selectionCardWithRadioSubheaderColor: #4d4d4d;
@selectionCardWithRadioSelectedSubheaderColor: #4d4d4d;

/*-------------------------------
Template Card
--------------------------------*/
Expand Down

0 comments on commit b7b8c3d

Please sign in to comment.