Skip to content

Commit

Permalink
Добавляет адаптив к демкам (#5583)
Browse files Browse the repository at this point in the history
  • Loading branch information
immitsu committed Jan 5, 2025
1 parent 2acb7aa commit ca9aec7
Show file tree
Hide file tree
Showing 8 changed files with 264 additions and 34 deletions.
22 changes: 22 additions & 0 deletions html/flow/demos/absolute/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,28 @@
height: 200px;
background-color: rgb(255 134 48 / 50%);
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}

.positioned {
left: -10px;
}
}

@media (max-width: 480px) {
body,
.normal-flow-child {
padding: 20px;
}
}
</style>
</head>
<body>
Expand Down
32 changes: 31 additions & 1 deletion html/flow/demos/float/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
color: #FFFFFF;
font-size: 16px;
font-family: "Roboto", sans-serif;
overflow: hidden;
}

.container {
Expand Down Expand Up @@ -64,6 +63,37 @@
.thin {
width: 60%;
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}
}

@media (max-width: 579px) {
.floated {
font-size: 78%;
width: 42%;
margin-right: 8px;
padding: 4px;
}

.in-float {
padding: 4px;
}
}

@media (max-width: 480px) {
body,
.normal-flow-child {
padding: 20px;
}
}
</style>
</head>
<body>
Expand Down
17 changes: 17 additions & 0 deletions html/flow/demos/inline/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@
span {
background-color: #2E9AFF;
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}
}

@media (max-width: 480px) {
body {
padding: 20px;
}
}
</style>
</head>
<body>
Expand Down
61 changes: 50 additions & 11 deletions html/flow/demos/margin-collapse-empty/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,19 @@

.controls {
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 25px;
gap: 25px;
}

.controls-block {
display: flex;
gap: 25px;
align-items: center;
}

.controls-block:first-child {
flex: 1;
}

.normal-flow {
Expand Down Expand Up @@ -108,10 +118,6 @@
transition: background-color 0.2s linear;
}

.button:not(:last-child), .input-range {
margin-right: 25px;
}

.button:hover {
background-color: #FFFFFF;
cursor: pointer;
Expand All @@ -132,24 +138,57 @@
}

.input-range {
width: 300px;
flex-grow: 1;
width: 100%;
}

@keyframes blinker {
0% {opacity: 1.0;}
50% {opacity: 0;}
100% {opacity: 1.0;}
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}

.controls {
flex-direction: column;
}
}

@media (max-width: 480px) {
body,
.normal-flow-child {
padding: 20px;
}

.button {
min-width: auto;
}

.button, .input-range {
width: 50%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="controls">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
<div class="controls-block">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
</div>
<div class="controls-block">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
</div>
</div>
<div class="normal-flow">
<p class="normal-flow-child">Азимут решает метеорный дождь. Движение однократно. Зоркость наблюдателя, после осторожного анализа, гасит аргумент перигелия. Очевидно, что азимут меняет возмущающий фактор.</p>
Expand Down
61 changes: 50 additions & 11 deletions html/flow/demos/margin-collapse-siblings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@
.controls {
padding-bottom: 25px;
display: flex;
align-items: center;
justify-content: center;
gap: 25px;
}

.controls-block {
display: flex;
gap: 25px;
align-items: center;
}

.controls-block:first-child {
flex: 1;
}

.normal-flow {
Expand Down Expand Up @@ -108,10 +118,6 @@
transition: background-color 0.2s linear;
}

.button:not(:last-child), .input-range {
margin-right: 25px;
}

.button:hover {
background-color: #FFFFFF;
cursor: pointer;
Expand All @@ -132,24 +138,57 @@
}

.input-range {
width: 300px;
flex-grow: 1;
width: 100%;
}

@keyframes blinker {
0% {opacity: 1.0;}
50% {opacity: 0;}
100% {opacity: 1.0;}
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}

.controls {
flex-direction: column;
}
}

@media (max-width: 480px) {
body,
.normal-flow-child {
padding: 20px;
}

.button {
min-width: auto;
}

.button, .input-range {
width: 50%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="controls">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
<div class="controls-block">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
</div>
<div class="controls-block">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
</div>
</div>
<div class="normal-flow">
<p class="normal-flow-child">Азимут решает метеорный дождь. Движение однократно. Зоркость наблюдателя, после осторожного анализа, гасит аргумент перигелия. Очевидно, что азимут меняет возмущающий фактор.</p>
Expand Down
65 changes: 54 additions & 11 deletions html/flow/demos/normal-animated/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,18 @@
.controls {
padding-bottom: 25px;
display: flex;
align-items: center;
justify-content: center;
gap: 25px;
}

.controls-block {
display: flex;
gap: 25px;
align-items: center;
}

.controls-block:first-child {
flex: 1;
}

.normal-flow {
Expand Down Expand Up @@ -74,10 +84,6 @@
transition: background-color 0.2s linear;
}

.button:not(:last-child), .input-range {
margin-right: 25px;
}

.button:hover {
background-color: #FFFFFF;
cursor: pointer;
Expand All @@ -98,18 +104,55 @@
}

.input-range {
width: 300px;
flex-grow: 1;
width: 100%;
}

@media (max-width: 868px) {
body {
padding: 30px;
}

.container {
width: auto;
min-width: auto;
}

.controls {
flex-direction: column;
}

.normal-flow-child {
width: 50%;
}
}

@media (max-width: 480px) {
body,
.normal-flow-child {
padding: 20px;
}

.button {
min-width: auto;
}

.button, .input-range {
width: 50%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="controls">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
<div class="controls-block">
<button class="button button-blue restart">Рестарт</button>
<input class="input-range" type="range" name="" value="0" min="0" max="100" id="timeline">
</div>
<div class="controls-block">
<button class="button button-blue stop">Пауза</button>
<button class="button button-orange play">Пуск</button>
</div>
</div>
<div class="normal-flow">
<p class="normal-flow-child">Азимут решает метеорный дождь. Движение однократно. </p>
Expand Down
Loading

0 comments on commit ca9aec7

Please sign in to comment.