Skip to content

Commit

Permalink
Headline用スタイルをtypographyファイルのheadline-1 Mixinに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
takusea committed Dec 3, 2023
1 parent f0d146c commit 12db4d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/template/OssLicenseSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const selectLicenseIndex = (index: number | undefined) => {
<style scoped lang="scss">
@use '@/styles/variables' as vars;
@use '@/styles/colors' as colors;
@use '@/styles/typography' as typography;
.container {
// 親コンポーネントからheightを取得できないため一時的にcalcを使用、HelpDialogの構造を再設計後100%に変更する
Expand All @@ -74,10 +75,8 @@ const selectLicenseIndex = (index: number | undefined) => {
background-color: #fff;
}
.headline {
font-size: 1.5rem;
line-height: 1;
margin: 0;
.title {
@include typography.headline-1;
}
.list {
Expand Down
6 changes: 6 additions & 0 deletions src/styles/typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@mixin headline-1 {
font-size: 1.5rem;
line-height: 2;
margin: 0;
font-weight: 600;
}

0 comments on commit 12db4d3

Please sign in to comment.