mirror of
https://github.com/He4eT/xecut-site.git
synced 2026-05-05 01:47:25 +00:00
parts: hero: logical properties
This commit is contained in:
parent
2d20c4fc35
commit
e03c4a5ab1
1 changed files with 29 additions and 27 deletions
|
|
@ -13,80 +13,82 @@
|
||||||
}
|
}
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
.hero {
|
.hero {
|
||||||
align-items: normal;
|
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
|
align-items: normal;
|
||||||
|
|
||||||
font-size: calc(2 * var(--step));
|
font-size: calc(2 * var(--step));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero:before,
|
.hero::before,
|
||||||
.hero:after {
|
.hero::after {
|
||||||
content: '';
|
content: '';
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
inset-inline-end: 0;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
width: 90%;
|
|
||||||
height: calc(1 * var(--step));
|
height: calc(1 * var(--step));
|
||||||
border-right: var(--hero-border);
|
width: 90%;
|
||||||
border-left: var(--hero-border);
|
border-inline: var(--hero-border);
|
||||||
}
|
}
|
||||||
.hero:before {
|
.hero::before {
|
||||||
top: calc(0.5 * var(--step));
|
inset-block-start: calc(0.5 * var(--step));
|
||||||
border-top: var(--hero-border);
|
border-block-start: var(--hero-border);
|
||||||
}
|
}
|
||||||
.hero:after {
|
.hero::after {
|
||||||
bottom: calc(1 * var(--step));
|
inset-block-end: calc(1 * var(--step));
|
||||||
border-bottom: var(--hero-border);
|
border-block-end: var(--hero-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags {
|
.hero .tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
.hero .tag {
|
||||||
padding: calc(0.25 * var(--step)) calc(1.5 * var(--step));
|
|
||||||
border: var(--hero-border);
|
|
||||||
outline: var(--hero-border);
|
outline: var(--hero-border);
|
||||||
|
border: var(--hero-border);
|
||||||
|
padding: calc(0.25 * var(--step)) calc(1.5 * var(--step));
|
||||||
background: var(--color-bg);
|
background: var(--color-bg);
|
||||||
}
|
}
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
.tag {
|
.hero .tag {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower_cell {
|
.hero .tower_cell {
|
||||||
box-sizing: border-box;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: var(--hero-border);
|
|
||||||
|
box-sizing: border-box;
|
||||||
outline: var(--hero-border);
|
outline: var(--hero-border);
|
||||||
|
border: var(--hero-border);
|
||||||
background: var(--color-bg);
|
background: var(--color-bg);
|
||||||
}
|
}
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
.tower_cell {
|
.hero .tower_cell {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower {
|
.hero .tower {
|
||||||
width: calc(18 * var(--step));
|
|
||||||
margin: calc(4 * var(--step));
|
margin: calc(4 * var(--step));
|
||||||
|
width: calc(18 * var(--step));
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.tower {
|
.hero .tower {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 500px) {
|
||||||
.tower {
|
.hero .tower {
|
||||||
max-width: calc(10 * var(--step));
|
|
||||||
margin: calc(1 * var(--step));
|
margin: calc(1 * var(--step));
|
||||||
|
max-width: calc(10 * var(--step));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue