A new userstyle
order.remex.ru/testorder by vsq
Details
Authorvsq
LicenseNo License
Categoryremex order beta
Created
Updated
Size6.4 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name order.remex.ru/testorder
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://order.remex.ru/testorder") {
/* Место для CSS кода... */
/* - хлам - */
hr {
display: none;
}
/*общие элемемнты */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
body {
font-family: "Source Sans 3", Arial, sans-serif;
display: flex;
flex-direction: column;
font-size: 16px;
line-height: 1.2;
min-height: 100vh;
}
main {
width: 100%;
max-width: 720px;
margin: 0 auto;
flex: 1;
}
:root {
--accent: #004ada;
--standard-border-radius: 0px;
}
/*Светлая тема*/
:root {
--border: rgba(137, 142, 164, 0.8);
}
/*Светлая ТЁМНАЯ? тема*/
/* @media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
} */
/*
дизайнс - - - - - - - - - - -
*/
main * h4 {
margin-block-start: 30px;
margin-block-end: 10px;
}
h4 {
font-size: 18px;
}
main * table {
width: 100%;
}
body > header {
padding: 0 0 20px;
border-bottom: 0px;
}
header > nav {
font-size: inherit;
line-height: inherit;
}
body > footer {
color: var(--text-light);
text-align: center;
border-top: 1px solid var(--border);
margin-top: 50px;
padding: 10px;
font-size: 12px;
}
/*
img {
border-radius: var(--standard-border-radius);
}
*/
#g_logo {
vertical-align: middle;
height: 120px;
}
#h_m_logo {
position: absolute;
top: 1.5rem;
left: 0.7rem;
display: none;
}
#g_m_logo {
vertical-align: middle;
height: 50px;
}
.notice {
border: 0px;
margin: 0;
}
details {
padding: 10px;
border: 0px;
}
details[open] > summary {
margin-bottom: 0;
}
/* классы состава заказа */
#order_table {
margin-bottom: 0;
}
thead,
td.col_art {
font-size: 12px;
}
.col_price,
.col_total {
text-align: right;
}
tbody * th.col_price,
tbody * th.col_qnty,
tfoot * th.col_price,
tfoot * th.col_qnty {
border-width: 1px 0px 1px 0px;
}
tbody * th.col_span,
tfoot * th.col_span {
border-width: 1px 0px 1px 1px;
}
/* классы грида адаптивной шапки */
.h_pos {
display: grid;
grid-template-columns: 1fr min(45rem, 90%) 1fr;
justify-items: center;
margin: 0;
}
.h_logo {
grid-area: logo;
align-self: center;
}
.h_info {
grid-area: info;
}
.h_info {
text-align: right;
width: 100%;
}
.h_pay {
grid-area: pay;
align-self: center;
}
.h_wrapper {
grid-area: 1/2/2/3;
display: grid;
gap: 0.5rem 1.5rem;
grid-template-columns: 90px 1fr auto;
grid-template-rows: 1fr;
grid-template-areas: "logo info pay";
justify-items: start;
min-width: min(45rem, 100%);
}
/* внутренние элементы шапки*/
#order_num {
font-size: inherit;
font-weight: 700;
margin: unset;
}
#order_client {
font-size: 1.5rem;
font-weight: 500;
margin: 0.7rem 0rem 1rem 0rem;
}
#order_paysum {
font-size: 1.4rem;
font-weight: 700;
margin: 0.7rem 0rem 1rem 0rem;
}
.h_pay > .button {
width: 280px;
padding: 10px;
margin: 0px;
font-weight: 600;
font-size: unset;
color: white;
}
/* мобильный вид шапки, кнопка уезжает вниз */
@media only screen and (max-width: 720px) {
.h_wrapper {
gap: 0.8rem 1.2rem;
grid-template-columns: auto 1fr;
grid-template-rows: 1fr auto;
grid-template-areas: "logo info" ". pay";
}
.h_pay > .button {
height: auto;
width: 27rem;
padding: 1.6rem;
margin: 0px;
vertical-align: middle;
font-weight: 600;
font-size: large;
}
}
/* мобильный вид шапки для портреного режима телефона
лого скрывается, столбец цена из состава заказа скрывается */
@media only screen and (max-width: 430px) {
.h_logo {
display: none;
}
#h_m_logo {
display: inline;
}
nav {
margin-left: 2.5rem;
min-height: 5rem;
}
.h_pos {
justify-items: center;
}
.h_wrapper {
justify-items: center;
gap: 0.4rem 0.5rempx;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
grid-template-areas: "info" "pay";
}
.h_pay > .button {
height: auto;
width: 18rem;
padding: 1.2rem;
margin: 0px;
font-size: large;
}
#order_num {
font-size: 1.5rem;
font-weight: 600;
margin: 0.5rem 0rem 0.8rem 0rem;
}
#order_client {
font-size: 1.25rem;
font-weight: 400;
margin: 0.5rem 0rem 0.5rem 0rem;
}
#order_paysum {
font-size: 1.3rem;
font-weight: 600;
margin: 0.9rem 0rem 0.5rem 0rem;
}
body {
font-size: 1rem;
}
body > header {
padding-bottom: 0.9rem;
}
body > main {
padding-top: 1rem;
}
table {
font-size: 0.8rem;
}
.col_art {
font-size: 0.7rem;
}
.col_price {
display: none;
}
}
}