mirror of
https://github.com/Alexander-D-Karpov/about.git
synced 2026-03-16 22:06:08 +03:00
263 lines
4.6 KiB
CSS
263 lines
4.6 KiB
CSS
.steam-section {
|
|
position: relative;
|
|
overflow: visible;
|
|
}
|
|
|
|
.steam-section .plugin-header {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.steam-section .plugin-toolbar {
|
|
display: flex !important;
|
|
opacity: 1 !important;
|
|
visibility: visible !important;
|
|
}
|
|
|
|
.current-game {
|
|
background: transparent;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
margin: 10px 0;
|
|
border: 1px solid var(--edge-0);
|
|
}
|
|
|
|
.current-game-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.current-game-status {
|
|
font-weight: 700;
|
|
font-size: 11px;
|
|
color: var(--good);
|
|
text-transform: uppercase;
|
|
letter-spacing: .3px;
|
|
}
|
|
|
|
.current-game-cover {
|
|
width: 100%;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.game-cover-image {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.current-game-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.current-game-name {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
color: var(--ink);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.current-game-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.player-status {
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 1px solid var(--edge-0);
|
|
}
|
|
|
|
.status-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.games-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.game-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
transition: border-color .15s ease;
|
|
cursor: default;
|
|
position: relative;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.game-item:hover {
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.game-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.game-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.game-name {
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
word-break: break-word;
|
|
color: var(--ink);
|
|
line-height: 1.2;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.game-stats {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
color: var(--muted);
|
|
font: 10px/1 var(--mono);
|
|
align-items: center;
|
|
}
|
|
|
|
.game-stats span {
|
|
background: rgba(255, 255, 255, .03);
|
|
padding: 2px 5px;
|
|
border-radius: 3px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.game-actions {
|
|
display: none;
|
|
}
|
|
|
|
.view-steam-btn {
|
|
padding: 5px 8px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background .15s ease;
|
|
text-decoration: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 3px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.view-steam-btn:hover {
|
|
background: color-mix(in oklch, var(--accent) 85%, white);
|
|
}
|
|
|
|
.steam-profile-link {
|
|
margin-top: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.view-profile-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
background: transparent;
|
|
color: var(--ink-2);
|
|
border: 1px solid var(--edge-0);
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
transition: all .15s ease;
|
|
}
|
|
|
|
.view-profile-btn:hover {
|
|
border-color: var(--edge-1);
|
|
color: var(--ink);
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
.current-game {
|
|
background: transparent;
|
|
border: 1px solid var(--edge-1);
|
|
}
|
|
|
|
.player-status {
|
|
background: transparent;
|
|
border: 1px solid var(--edge-1);
|
|
}
|
|
|
|
.game-item {
|
|
background: transparent;
|
|
border: 1px solid var(--edge-1);
|
|
}
|
|
|
|
.game-item:hover {
|
|
border-color: var(--edge-2);
|
|
}
|
|
|
|
.game-stats span {
|
|
background: rgba(0, 0, 0, .04);
|
|
}
|
|
|
|
.view-profile-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--edge-1);
|
|
color: var(--ink-2);
|
|
}
|
|
|
|
.view-profile-btn:hover {
|
|
border-color: var(--edge-2);
|
|
color: var(--ink);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 780px) {
|
|
.games-list {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.game-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.game-name {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.games-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |