|
|
| Строка 3: |
Строка 3: |
| <div class="link-card__name">{{{name|Название}}}</div> | | <div class="link-card__name">{{{name|Название}}}</div> |
| </div> | | </div> |
| <!--
| |
|
| |
| -->{{#css:
| |
| .link-card {
| |
| display: inline-block;
| |
| position: relative;
| |
| min-width: 110px;
| |
| text-align: center;
| |
| border: 1px outset rgb(0 0 0 / 30%);
| |
| border-radius: 0.3em;
| |
| box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2);
| |
| background: var(--background-color);
| |
| transition: all 0.15s ease;
| |
| }
| |
|
| |
| .link-card__image {
| |
| position: relative;
| |
| padding: 6px;
| |
| align-content: center;
| |
| }
| |
|
| |
| .link-card__name {
| |
| position: relative;
| |
| width: 100%;
| |
| padding: 2px 4px;
| |
| font-size: 0.8em;
| |
| box-sizing: border-box;
| |
| background: #00000040;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| @media (min-width: 800px) {
| |
| .link-card:not(.link-card__side):hover {
| |
| box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.2);
| |
| transform: translateY(-4px);
| |
| }
| |
| }
| |
|
| |
| @media (max-width: 800px) {
| |
| .link-card {
| |
| display: flex;
| |
| box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.4);
| |
| width: 100%;
| |
| text-align: left;
| |
| }
| |
|
| |
| .link-card__name {
| |
| background: #00000020;
| |
| padding: 4px 8px;
| |
| font-size: 0.9em;
| |
| display: flex;
| |
| align-items: center;
| |
| justify-content: space-between;
| |
| flex-wrap: nowrap;
| |
| }
| |
|
| |
| .link-card__image {
| |
| padding: 4px;
| |
| }
| |
| }
| |
|
| |
| .link-card__side {
| |
| display: flex ;
| |
| box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.4);
| |
| width: 100%;
| |
| text-align: left;
| |
| }
| |
|
| |
| .link-card__side .link-card__name {
| |
| background: #00000020;
| |
| padding: 4px 8px;
| |
| font-size: 0.9em;
| |
| display: flex;
| |
| align-items: center;
| |
| justify-content: space-between;
| |
| flex-wrap: nowrap;
| |
| }
| |
|
| |
| .link-card__side .link-card__image {
| |
| padding: 4px;
| |
| }
| |
|
| |
| .link-card__side img {
| |
| width: 32px;
| |
| height: 32px;
| |
| }
| |
| }}
| |