|
1 | 1 | /* SkillContainer Component Styles */ |
| 2 | + |
| 3 | +:root { |
| 4 | + --active-box-shadow: |
| 5 | + inset 2px -2px 2px rgba(0, 0, 0, 0.5), |
| 6 | + inset -2px 2px 2px rgba(250, 240, 224, 0.5), |
| 7 | + -2px 2px 2px rgba(0, 0, 0, 0.5); |
| 8 | +} |
| 9 | + |
2 | 10 | .skill-container { |
3 | 11 | position: relative; |
4 | | - width: 28%; |
5 | | - height: auto; |
6 | | - margin: 1%; |
7 | | - padding: 1%; |
8 | | - -webkit-background-size: cover; |
9 | | - -moz-background-size: cover; |
10 | | - -o-background-size: cover; |
11 | | - background-size: 100% 100%; |
| 12 | + width: 48rem; |
| 13 | + height: auto; |
12 | 14 | display: flex; |
13 | 15 | flex-direction: column; |
14 | 16 | align-items: center; |
15 | | - justify-content: space-between; |
16 | | - border-image: url(/src/Media/Windows/Window5.png) 2 fill stretch; |
17 | | - border-style: solid; |
18 | | - image-rendering: pixelated; |
19 | | - border-width: 4px; |
| 17 | + justify-content: space-between; |
| 18 | +} |
| 19 | + |
| 20 | +.skill-container__item { |
| 21 | + width: 100%; |
| 22 | + height: auto; |
| 23 | + display: flex; |
| 24 | + flex-direction: row; |
| 25 | + align-items: center; |
| 26 | + justify-content: flex-end; |
| 27 | + gap: 0.5rem; |
| 28 | + font-size: 1.5rem; |
20 | 29 | } |
21 | 30 |
|
22 | 31 | .skill-container__title { |
|
52 | 61 | text-align: center; |
53 | 62 | } |
54 | 63 |
|
55 | | -.skill-container__stats-line { |
56 | | - margin: 0.2rem 0; |
| 64 | +.skill-container__icon { |
| 65 | + width: 2rem; |
| 66 | + height: 2rem; |
| 67 | + cursor: help; |
| 68 | +} |
| 69 | + |
| 70 | +.skill-container__icon:hover { |
| 71 | + transform: scale(1.1); |
| 72 | +} |
| 73 | + |
| 74 | +.skill-container__level-indicators { |
57 | 75 | display: flex; |
58 | | - flex-direction: column; |
59 | | - gap: 6px; |
| 76 | + gap: 0.5rem; |
60 | 77 | } |
61 | 78 |
|
62 | | -.skill-container__progress-bar { |
63 | | - width: 100%; |
64 | | - height: 12px; |
65 | | - background-color: #3a3a3a; |
66 | | - border-radius: 6px; |
| 79 | +.skill-container__level-block { |
| 80 | + border-radius: 0.25rem; |
67 | 81 | overflow: hidden; |
68 | | - border: 2px solid #8b4513; |
69 | | - box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); |
| 82 | + height: 1.25rem; |
| 83 | + border: 0.125rem solid #C88D36; |
| 84 | + background-color: #C87D1B; |
| 85 | + box-shadow: inset -2px 2px 2px rgba(0, 0, 0, 0.5), |
| 86 | + -2px 2px 2px rgba(0, 0, 0, 0.5); |
70 | 87 | } |
71 | 88 |
|
72 | | -.skill-container__progress-fill { |
73 | | - height: 100%; |
74 | | - background: linear-gradient(90deg, #4caf50, #81c784); |
75 | | - border-radius: 4px; |
76 | | - transition: width 0.3s ease; |
77 | | - min-width: 2px; |
78 | | - box-shadow: 0 0 8px rgba(76, 175, 80, 0.5); |
| 89 | +.skill-container__level-block.sm { |
| 90 | + width: 1.5rem; |
| 91 | + &.active { |
| 92 | + background-color: #DF003B; |
| 93 | + box-shadow: var(--active-box-shadow); |
| 94 | + } |
79 | 95 | } |
80 | 96 |
|
81 | | -.skill-container__icon { |
82 | | - position: absolute; |
83 | | - bottom: -12px; |
84 | | - left: -12px; |
85 | | - width: 40px; |
86 | | - height: 40px; |
87 | | - cursor: help; |
88 | | - transition: transform 0.2s ease-in-out; |
| 97 | +.skill-container__level-block.lg { |
| 98 | + width: 3rem; |
| 99 | + &.active { |
| 100 | + background-color: #FFA301; |
| 101 | + box-shadow: var(--active-box-shadow); |
| 102 | + } |
89 | 103 | } |
90 | 104 |
|
91 | | -.skill-container__icon:hover { |
92 | | - transform: scale(1.1); |
| 105 | +.skill-container__level-no { |
| 106 | + width: 2ch; |
| 107 | + font-weight: 600; |
| 108 | + font-size: 2rem; |
93 | 109 | } |
94 | 110 |
|
95 | 111 | /* Responsive adjustments */ |
|
0 commit comments