A new userstyle
order.remex.ru/testorder by vsq
Details
Authorvsq
LicenseNo License
Categoryremex order beta
Created
Updated
Code size9.0 kB
Code checksum78c67f81
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 кода... */
/* бордеры кнопок
button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover {
background-color: unset;
border-color: unset;
}
*/
/*общие элемемнты */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
:root {
--accent: #004ada;
--standard-border-radius: 0px;
--font-small: 1.1rem;
--border: rgba(137, 142, 164, 0.5);
}
body {
font-family: "Source Sans 3", Arial, sans-serif;
display: flex;
flex-direction: column;
font-size: 1.1rem;
line-height: 1.2;
min-height: 100vh;
}
main {
width: 100%;
max-width: min(720px, 90%);
margin: 0 auto;
flex: 1;
}
/*ТЁМНАЯ? тема*/
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--accent: #4d89ff;
--accent-hover: #004ee6;
--accent-text: rgb(255, 255, 255) ;
--border: rgba(255, 255, 255, 0.2);
}
button, .button, a.button {
background-color: #004ada;
border-color: #004ada;
}
}
/* дизайнс - - - - - - - - - - - */
main {
padding-top: 0.5rem;
}
main * h4 {
margin-block-start: 30px;
margin-block-end: 10px;
font-size: 1.38rem;
}
main * table {
width: 100%;
margin: 0;
}
body > header {
padding: 0 0 20px;
border-bottom: 0px;
}
header > nav {
line-height: inherit;
padding: 0.5rem;
font-size: var(--font-small);
margin-block-start: 0.5rem;
margin-block-end: 0.5rem;
}
header>nav a, header>nav a:visited {
border: 0px;
border-bottom: 1px solid var(--border);
border-radius: 0px;
margin: 0px 10px 5px;
padding: 0px;
}
body > footer {
color: var(--text-light);
text-align: center;
border-top: 1px solid var(--border);
margin-top: 50px;
padding: 10px;
font-size: var(--font-small);
}
#g_logo {
vertical-align: middle;
height: 120px;
}
#h_m_logo {
position: absolute;
top: 1.2rem;
left: 5%;
display: none;
}
#g_m_logo {
vertical-align: middle;
height: 50px;
}
.notice {
margin: 0;
}
mark {
border-radius: var(--standard-border-radius);
background-color: unset;
color: var(--text);
padding: 0px 4px;
}
details {
padding: 10px;
}
details[open] > summary {
margin-bottom: 0;
}
/* верхнее уведомление: оплата, аннуул и тд */
#top_notice {
text-align: center;
border-color: var(--accent);
margin-block-start: 1.5rem;
}
/* классы состава заказа */
#order_table {
margin-bottom: 0;
}
.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;
}
.h_logo {
grid-area: logo;
align-self: center;
}
.h_info {
grid-area: 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 0rem;
grid-template-columns: 90px 1fr auto;
grid-template-rows: 1fr;
grid-template-areas: "logo info" ". pay ";
justify-items: end;
min-width: min(45rem, 100%);
}
/* внутренние элементы шапки*/
#order_num {
font-size: 1.4rem;
font-weight: 600;
margin: unset;
}
#order_client {
font-size: 1.7rem;
font-weight: 600;
margin: 0.7rem 0rem 0.7rem 0rem;
}
#order_paysum {
font-size: 1.3rem;
border-top: 2px dotted var(--border);
padding: 10px 0px;
width: min(280px, 90%);
margin: 1.3rem 0 0 auto;
}
.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";
}
header > nav {
margin-block-end: unset;
}
.h_pay > .button {
height: auto;
width: 25rem;
padding: 1.2rem;
margin: 0px;
vertical-align: middle;
font-weight: 600;
font-size: large;
}
.h_logo {
display: none;
}
#h_m_logo {
display: inline;
}
nav {
margin-left: 55px;
min-height: 65px;
}
header > nav a {
border-bottom: 1px solid var(--border);
border-radius: 0px;
margin: 0px 10px 10px;
padding: 1px;
text-decoration: none;
line-height: 1;
}
main * h4 {
margin-block-start: 20px;
margin-block-end: 10px;
font-size: 1.2rem;
}
}
/* мобильный вид шапки для портреного режима телефона
лого скрывается, столбец цена из состава заказа скрывается */
@media only screen and (max-width: 430px) {
.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_info {
text-align: center;
}
.h_pay > .button {
height: auto;
width: 16rem;
padding: 1rem;
margin: 0px;
font-size: large;
}
#order_num {
font-size: 1.20rem;
font-weight: 600;
margin: 0.5rem 0rem 0.8rem 0rem;
}
#order_client {
font-size: 1.55rem;
font-weight: 600;
margin: 0.5rem 0rem 0.5rem 0rem;
}
#order_paysum {
font-size: 1.2rem;
font-weight: 400;
margin: 0.9rem 0rem 0rem 0rem;
width: unset;
}
table {
font-size: 0.8rem;
}
.col_art, .col_art > a {
font-size: 0.7rem;
}
.col_price {
display: none;
}
}
}