mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-16 06:18:34 +02:00
This follows the REUSE practices to add license and copyright info to all source files: https://reuse.software/practices/2.0/ In addition, LICENSE.md was switched to a plaintext LICENSE file, to support the tag-value header as recommended. Note that files that are closer to configuration than code did not have headers added. This includes all Salt files, Alembic files, and Python files such as most __init__.py files that only import other files, since those are similar to header files which are not considered copyrightable.
22 lines
535 B
SCSS
22 lines
535 B
SCSS
// Copyright (c) 2018 Tildes contributors <code@tildes.net>
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
// shrinks a font size by 0.1rem on mobile screen sizes
|
|
@mixin font-shrink-on-mobile($base-size) {
|
|
font-size: $base-size - 0.1rem;
|
|
@media (min-width: $size-md) {
|
|
font-size: $base-size;
|
|
}
|
|
}
|
|
|
|
|
|
// makes sure the element is the "minimum touch size" on mobile
|
|
@mixin min-touch-size() {
|
|
min-width: $min-touch-size;
|
|
min-height: $min-touch-size;
|
|
@media (min-width: $size-md) {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
}
|