Skip to content

Commit

Permalink
style: fix scss files format
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Oct 16, 2024
1 parent ed55c0c commit 3d040a6
Show file tree
Hide file tree
Showing 51 changed files with 237 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $dv-font-size: 16px;
$dv-font-size-sm: 12px;
$dv-brand-font-size: 24px;

$dv-font-family: ("Helvetica Neue",helvetica,arial,sans-serif);
$dv-font-family: ('Helvetica Neue', helvetica, arial, sans-serif);

$dv-font-weight: 400;
$dv-font-weight-light: 300;
Expand All @@ -19,4 +19,4 @@ $dv-line-height: 1.5;
fontWeightLight: $dv-font-weight-light;
fontWeightBold: $dv-font-weight-bold;
lineHeight: $dv-line-height;
}
}
88 changes: 67 additions & 21 deletions packages/design-system/src/lib/assets/styles/fontcustom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@
font-weight: normal;
font-family: fontcustom;
font-style: normal;
src: url("fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.woff2") format("woff2"),
url("fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.woff") format("woff"),
url("fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.ttf") format("truetype"),
url("fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.svg#fontcustom") format("svg");
src: url('fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.woff2') format('woff2'),
url('fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.woff') format('woff'),
url('fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.ttf') format('truetype'),
url('fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.svg#fontcustom') format('svg');
}

@media screen and (min-resolution) {
@font-face {
font-family: fontcustom;
src: url("fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.svg#fontcustom") format("svg");
src: url('fontcustom/fontcustom_8c9f858763dbca8e064e7fd59d1aa2b7.svg#fontcustom') format('svg');
}
}

[data-icon]::before { content: attr(data-icon); }
[data-icon]::before {
content: attr(data-icon);
}

[data-icon]::before,
.icon-astro::before,
Expand Down Expand Up @@ -50,18 +52,62 @@
-webkit-font-smoothing: antialiased;
}

.icon-astro::before { content: "\f100"; }
.icon-audio::before { content: "\f101"; }
.icon-code::before { content: "\f102"; }
.icon-collection::before { content: "\f103"; }
.icon-dataset::before { content: "\f104"; }
.icon-document::before { content: "\f105"; }
.icon-file::before { content: "\f106"; }
.icon-geodata::before { content: "\f107"; }
.icon-image::before { content: "\f108"; }
.icon-network::before { content: "\f109"; }
.icon-other::before { content: "\f10a"; }
.icon-package::before { content: "\f10b"; }
.icon-tabular::before { content: "\f10c"; }
.icon-unlock::before { content: "\f10d"; }
.icon-video::before { content: "\f10e"; }
.icon-astro::before {
content: '\f100';
}

.icon-audio::before {
content: '\f101';
}

.icon-code::before {
content: '\f102';
}

.icon-collection::before {
content: '\f103';
}

.icon-dataset::before {
content: '\f104';
}

.icon-document::before {
content: '\f105';
}

.icon-file::before {
content: '\f106';
}

.icon-geodata::before {
content: '\f107';
}

.icon-image::before {
content: '\f108';
}

.icon-network::before {
content: '\f109';
}

.icon-other::before {
content: '\f10a';
}

.icon-package::before {
content: '\f10b';
}

.icon-tabular::before {
content: '\f10c';
}

.icon-unlock::before {
content: '\f10d';
}

.icon-video::before {
content: '\f10e';
}
5 changes: 2 additions & 3 deletions packages/design-system/src/lib/assets/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import "fontcustom";
@import "bootstrap-customized";

@import 'fontcustom';
@import 'bootstrap-customized';
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
@import 'src/lib/assets/styles/design-tokens/colors.module';

.primary:not(#\#) {
color: color-contrast($dv-primary-color);
color: color-contrast($dv-primary-color);
}

.secondary:not(#\#) {
color: color-contrast($dv-secondary-color);
color: color-contrast($dv-secondary-color);
}

.info:not(#\#) {
color: color-contrast($dv-info-color);
color: color-contrast($dv-info-color);
}

.success:not(#\#) {
color: color-contrast($dv-success-color);
color: color-contrast($dv-success-color);
}

.warning:not(#\#) {
color: color-contrast($dv-warning-color);
color: color-contrast($dv-warning-color);
}

.danger:not(#\#) {
color: color-contrast($dv-danger-color);
}
color: color-contrast($dv-danger-color);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "src/lib/assets/styles/design-tokens/colors.module";
@import 'src/lib/assets/styles/design-tokens/colors.module';

.border > button, .border > [role="group"] > button {
.border > button,
.border > [role='group'] > button {
border: 1px solid $dv-button-border-color;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.spacing {
margin: 0 7px;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.spacing {
margin: 0 7px
margin: 0 7px;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "src/lib/assets/styles/design-tokens/typography.module";
@import 'src/lib/assets/styles/design-tokens/typography.module';

.title {
padding-top: calc(0.375rem + 1px);
padding-bottom: calc(0.375rem + 1px);
font-weight: $dv-font-weight-bold;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "src/lib/assets/styles/design-tokens/colors.module";
@import 'src/lib/assets/styles/design-tokens/colors.module';

.asterisk {
color: $dv-danger-color;
}
color: $dv-danger-color;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.icon {
margin-right: .3em;
}
margin-right: 0.3em;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.table > thead {
text-align: center;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import "src/lib/assets/styles/design-tokens/colors.module";
@import 'src/lib/assets/styles/design-tokens/colors.module';

.question-tooltip {
color: $dv-tooltip-color;
}

.question-tooltip:hover {
color: $dv-tooltip-hover-color;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.tooltip {
display: inline-block;
vertical-align: 0.125em;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module';

.errorText {
color: $dv-danger-color;
Expand All @@ -7,4 +7,4 @@
.warningText {
margin-bottom: 0;
color: $dv-warning-color;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
@media (min-width: 768px) {
padding-left: 1rem;
}
}
}
2 changes: 1 addition & 1 deletion src/sections/dataset/Dataset.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

.tab-container {
padding: 1em 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
display: flex;
width: 100%;
margin: 0.5rem 0;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.container > * {
margin-top: 1em;
margin-right: 0.5em;
}
}
22 changes: 11 additions & 11 deletions src/sections/dataset/dataset-citation/DatasetCitation.module.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module';

.container {
margin: 0 0 20px;
padding: 10px 0;
border: 1px solid $dv-info-border-color;
margin: 0 0 20px;
padding: 10px 0;
border: 1px solid $dv-info-border-color;
}

.deaccessioned {
margin: 0.5rem 0;
padding: 10px;
border: 1px solid $dv-danger-color;
margin: 0.5rem 0;
padding: 10px;
border: 1px solid $dv-danger-color;
}

.row {
margin-right: -15px;
margin-left: -15px;
margin-right: -15px;
margin-left: -15px;
}

.thumbnail {
font-size: 7.5em;
}
font-size: 7.5em;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.icon {
margin-right: 0.3rem;
margin-bottom: 0.2rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
display: flex;
justify-content: end;
text-align: right;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.icon {
margin-right: 0.3rem;
margin-bottom: 0.2rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.icon {
margin-right: 0.3rem;
margin-right: 0.3rem;
margin-bottom: 0.2rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.container {
text-align: right;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module';

.paragraph {
color: $dv-danger-color;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module';

.box {
margin-bottom: 0.5em;
Expand All @@ -10,4 +10,4 @@
.icon {
margin-right: 0.3rem;
margin-bottom: 0.2rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/typography.module";
@import "node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module";
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/typography.module';
@import 'node_modules/@iqss/dataverse-design-system/src/lib/assets/styles/design-tokens/colors.module';

.container {
display: flex;
display: flex;
}

.body-container {
Expand All @@ -11,7 +11,6 @@ display: flex;
&__subtext {
color: $dv-subtext-color;
font-size: $dv-font-size-sm;

}
}

Expand Down
Loading

0 comments on commit 3d040a6

Please sign in to comment.