@transfermarkt/global-styles 1.23.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transfermarkt/global-styles",
3
- "version": "1.23.0",
3
+ "version": "1.25.0",
4
4
  "description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
5
5
  "author": "Transfermarkt",
6
6
  "license": "MIT",
@@ -8,6 +8,9 @@
8
8
  .tm-btn {
9
9
  $font-size-small: rem-calc(12);
10
10
  $font-size-medium: rem-calc(14);
11
+ $font-size-large: rem-calc(16);
12
+ $border-radius: rem-calc(8);
13
+ $gap: rem-calc(8);
11
14
  $position: 'right';
12
15
 
13
16
  align-items: center;
@@ -60,23 +63,56 @@
60
63
  background-color: tm-color('light-blue-new');
61
64
 
62
65
  &--large {
63
- height: rem-calc(40);
66
+ border-radius: $border-radius;
67
+ font-size: ($font-size-large + rem-calc(2));
68
+ gap: $gap;
69
+ height: rem-calc(56);
64
70
  letter-spacing: rem-calc(1);
71
+ line-height: rem-calc(28);
72
+ min-width: rem-calc(36);
73
+ padding: rem-calc(8) rem-calc(16);
65
74
  text-transform: uppercase;
75
+
76
+ @include breakpoint(laptop) {
77
+ font-size: $font-size-large;
78
+ height: rem-calc(48);
79
+ line-height: rem-calc(24);
80
+ min-width: rem-calc(36);
81
+ }
66
82
  }
67
83
 
68
84
  &--medium {
69
- font-size: $font-size-medium;
70
- height: rem-calc(36);
71
- line-height: rem-calc(20);
85
+ border-radius: $border-radius;
86
+ font-size: ($font-size-medium + rem-calc(2));
87
+ gap: $gap;
88
+ height: rem-calc(48);
89
+ line-height: rem-calc(24);
90
+ min-width: rem-calc(36);
72
91
  padding: rem-calc(8) rem-calc(16);
92
+
93
+ @include breakpoint(laptop) {
94
+ font-size: $font-size-medium;
95
+ height: rem-calc(40);
96
+ line-height: rem-calc(22);
97
+ min-width: rem-calc(36);
98
+ }
73
99
  }
74
100
 
75
101
  &--small {
76
- font-size: $font-size-small;
77
- height: rem-calc(30);
78
- line-height: normal;
79
- padding: rem-calc(8) rem-calc(12);
102
+ border-radius: $border-radius;
103
+ font-size: ($font-size-small + rem-calc(2));
104
+ gap: $gap;
105
+ height: rem-calc(40);
106
+ line-height: rem-calc(22);
107
+ min-width: rem-calc(36);
108
+ padding: rem-calc(4) rem-calc(12);
109
+
110
+ @include breakpoint(laptop) {
111
+ font-size: $font-size-small;
112
+ height: rem-calc(32);
113
+ line-height: rem-calc(18);
114
+ min-width: rem-calc(36);
115
+ }
80
116
  }
81
117
 
82
118
  &:hover {
@@ -314,19 +350,31 @@
314
350
  @include tm-icon-color('admiral');
315
351
 
316
352
  &--large {
317
- @include tm-icon-size(16px);
353
+ @include tm-icon-size(22px);
354
+
355
+ @include breakpoint(laptop) {
356
+ @include tm-icon-size(20px);
357
+ }
318
358
 
319
359
  stroke-width: 1.8;
320
360
  }
321
361
 
322
362
  &--medium {
323
- @include tm-icon-size(16px);
363
+ @include tm-icon-size(20px);
364
+
365
+ @include breakpoint(laptop) {
366
+ @include tm-icon-size(16px);
367
+ }
324
368
 
325
369
  stroke-width: 1.5;
326
370
  }
327
371
 
328
372
  &--small {
329
- @include tm-icon-size(14px);
373
+ @include tm-icon-size(16px);
374
+
375
+ @include breakpoint(laptop) {
376
+ @include tm-icon-size(12px);
377
+ }
330
378
 
331
379
  stroke-width: 1.2;
332
380
  }
@@ -142,3 +142,4 @@ $tm-colors: (
142
142
  'brand-community': #1d75a3,
143
143
  'brand-wahretabelle': #429535
144
144
  );
145
+
@@ -1,35 +0,0 @@
1
- name: Release to NPM
2
- on: [push]
3
- jobs:
4
- Release-to-NPM:
5
- runs-on: ubuntu-latest
6
- container:
7
- image: bitnami/node:22
8
- steps:
9
- # Checkout the repository
10
- - name: Check out repository
11
- uses: actions/checkout@v4
12
-
13
- # Setup Node with pinned node.js version through package.json (volta.node)
14
- - name: Setup Bun
15
- uses: oven-sh/setup-bun@v2
16
- with:
17
- bun-version: latest
18
-
19
- - name: Install dependencies
20
- run: bun i
21
-
22
- # Lint SCSS files
23
- - name: Linting scss files
24
- run: bun run lint
25
-
26
- # Run semantic-release
27
- - name: Semantic Release Action
28
- id: semantic
29
- uses: codfish/semantic-release-action@v3
30
- with:
31
- repository-url: ${{ gitea.event.repository.html_url }}
32
-
33
- env:
34
- GITEA_TOKEN: ${{ secrets.RELEASE_USER_TOKEN }}
35
- NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}