Force 2-column grid on mobile for home and live feed
This commit is contained in:
parent
71d4b10271
commit
8ab4dc4950
1 changed files with 2 additions and 0 deletions
2
serp.py
2
serp.py
|
|
@ -1344,6 +1344,7 @@ h1 { color: #ff6b6b; margin-bottom: 5px; }
|
|||
.search-columns .page-column { display: none; }
|
||||
.search-columns.has-pages .page-column { display: block; }
|
||||
@media (max-width: 1000px) { .search-columns.has-pages { grid-template-columns: 1fr; } }
|
||||
@media (max-width: 768px) { .results { grid-template-columns: repeat(2, 1fr); } }
|
||||
"""
|
||||
|
||||
SEARCH_CONTENT = """
|
||||
|
|
@ -2404,6 +2405,7 @@ LIVE_HTML = """
|
|||
0% { box-shadow: 0 0 30px rgba(16, 185, 129, 1); }
|
||||
100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
|
||||
}
|
||||
@media (max-width: 768px) { .live-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue