Comments (4)
Боже, как сложно жить! iPad-то я и не проверил. Спасибо за подробный репорт! Я только пока не совсем понял, как должен работать фикс. Вроде после него получается, что если экран широкий (больше 768 пикселей), то будут отображаться и широкие и узкие формулы. Или я совсем не понимаю, как эти селекторы работают…
from qqmbr.
В фиксе есть два одинаковых медиавыражения, которые отличаются оператором not
. Поэтому всегда выполнится или одно выражение, или другое.
Отмечу, что not
делает отрицание всего выражения целиком.
Рассмотрим второй медиа-запрос:
not (max-width: 768 px) <=>
not (width <= 768 px) <=>
width > 768 px
from qqmbr.
Впрочем, можно придумать более простое решение, например, использовать в одном медиа-запросе 768px, а в другом — 769px:
@media screen and (max-width: 768px) {
.long-eq {
display: none;
}
}
@media screen and (min-width: 769px) {
.splitted-eq {
display: none;
}
}
Тогда широкие и узкие формулы будут отображаться одновременно, если экран имеет дробную ширину строго больше 768 и строго меньше 769 пикселей. Можно понадеяться, что такая ситуация не встретится, а если встретится — то две формулы лучше, чем ни одной.
from qqmbr.
Спасибо! Я долго думал, в чём подвох, но не сообразил, что and имеет более высокий приоритет и not применяется ко всему выражению.
from qqmbr.
Related Issues (13)
- Implement QqLaTeXFormatter HOT 15
- Fix block tags inside special inline tags HOT 1
- Live demo doesn't work HOT 1
- How to use?
- Space before "Подробнее" is missing
- Better equation preview on mobile
- Punctuation detach from the equation
- Highlight referenced element on hover over reference
- Preview images on click on the reference
- Highlight parts of images
- Better TOC and chapter navigation
- Make bottom banner closable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qqmbr.