Skip to content

Commit

Permalink
remove redundant stylings already defined in main scss; lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vpchung committed Dec 19, 2024
1 parent 2759366 commit 395b8f5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 19 deletions.
30 changes: 20 additions & 10 deletions libs/openchallenges/challenge/src/lib/_challenge-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,39 @@
.base {
background-color: white;
}

#profile-top,
#profile-stats {
border-color: transparent;
background-color: map.get($figma, dl-color-default-hover1);
}

.featured {
border-color: transparent;
color: #71c663;
}

.username {
color: map.get($figma, dl-color-default-secondary1);
}

.profile-nav-group {
border-color: map.get($figma, dl-color-default-primary2);
background-color: rgba(255, 255, 255, 1);
background-color: rgb(255 255 255 / 100%);
}

.profile-nav-item {
border-color: transparent;

&:focus,
&:hover {
background-color: map.get($figma, dl-color-default-primary1);
color: white;
}

color: black;
}

.profile-nav-item.active-tab {
background-color: map.get($figma, dl-color-default-navbardark);
color: white;
Expand All @@ -60,11 +68,7 @@
}
}

.text-grey {
color: rgba(black, 0.38);
}

@media (max-width: 479px) {
@media (width <= 479px) {
.profile-pic {
background-color: map.get($figma, dl-color-default-hover2);
}
Expand All @@ -75,18 +79,22 @@
.username {
font-size: 28px;
}

.profile-featured > .mat-icon {
font-size: 60px;
}

.profile-pic {
div.avatar-content {
font-family: 'Lato', sans-serif !important;
font-family: Lato, sans-serif !important;
}
}
@media screen and (max-width: 641px) {

@media screen and (width <= 641px) {
#profile-details > h2 {
font-size: 32px;
}

#profile-details > h3 {
font-size: 21px;
}
Expand All @@ -95,12 +103,14 @@

@mixin theme($theme) {
$color-config: mat.m2-get-color-config($theme);
@if $color-config != null {

@if $color-config {
@include color($theme);
}

$typography-config: mat.m2-get-typography-config($theme);
@if $typography-config != null {

@if $typography-config {
@include typography($theme);
}
}
29 changes: 20 additions & 9 deletions libs/openchallenges/org-profile/src/lib/_org-profile-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,50 @@
.base {
background-color: white;
}

#profile-top,
#profile-stats {
border-color: transparent;
background-color: map.get($figma, dl-color-default-hover1);
}

.verified {
border-color: transparent;
color: map.get($figma, dl-color-default-darkaccent1);
}

.username {
color: map.get($figma, dl-color-default-secondary1);
}

.profile-type {
border-color: map.get($figma, dl-color-default-secondary2);
background-color: map.get($figma, dl-color-default-accent2);
}

.profile-nav-group {
border-color: map.get($figma, dl-color-default-primary2);
background-color: rgba(255, 255, 255, 1);
background-color: rgb(255 255 255 / 100%);
}

.profile-nav-item {
border-color: transparent;

&:focus,
&:hover {
background-color: map.get($figma, dl-color-default-primary1);
color: white;
}

color: black;
}

.profile-nav-item.active-tab {
background-color: map.get($figma, dl-color-default-navbardark);
color: white;
}
.text-grey {
color: rgba(black, 0.38);
}

@media (max-width: 479px) {
@media (width <= 479px) {
.profile-pic {
background-color: map.get($figma, dl-color-default-hover2);
}
Expand All @@ -59,15 +65,18 @@
.username {
font-size: 28px;
}

.profile-pic {
div.avatar-content {
font-family: 'Lato', sans-serif !important;
font-family: Lato, sans-serif !important;
}
}
@media screen and (max-width: 641px) {

@media screen and (width <= 641px) {
#profile-details > h2 {
font-size: 32px;
}

#profile-details > h3 {
font-size: 21px;
}
Expand All @@ -76,12 +85,14 @@

@mixin theme($theme) {
$color-config: mat.m2-get-color-config($theme);
@if $color-config != null {

@if $color-config {
@include color($theme);
}

$typography-config: mat.m2-get-typography-config($theme);
@if $typography-config != null {

@if $typography-config {
@include typography($theme);
}
}

0 comments on commit 395b8f5

Please sign in to comment.