mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
committed by
Tim Abbott
parent
aae11bf88d
commit
bd0a5d5d69
@@ -336,7 +336,7 @@ input.recipient_box {
|
||||
}
|
||||
|
||||
#subject.recipient_box {
|
||||
width: calc(20% + 14px);
|
||||
width: calc(20% - -14px);
|
||||
min-width: 140px;
|
||||
max-width: 165px;
|
||||
}
|
||||
|
||||
@@ -1169,7 +1169,7 @@ input#zulipbot:checked ~ #tab-zulipbot {
|
||||
.login-form {
|
||||
margin: auto;
|
||||
/* plus input padding. */
|
||||
width: calc(300px + 28px);
|
||||
width: calc(300px - -28px);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
@@ -1696,7 +1696,7 @@ input.new-organization-button {
|
||||
margin-top: -240px;
|
||||
height: auto;
|
||||
width: calc(100% - 40px);
|
||||
max-width: calc(768px + 20px);
|
||||
max-width: calc(768px - -20px);
|
||||
}
|
||||
|
||||
.error_page {
|
||||
|
||||
@@ -526,7 +526,7 @@ input[type=checkbox].inline-block {
|
||||
}
|
||||
|
||||
.add-new-filter-box button {
|
||||
margin-left: calc(10em + 20px) !important;
|
||||
margin-left: calc(10em - -20px) !important;
|
||||
}
|
||||
|
||||
.grey-box .wrapper {
|
||||
|
||||
@@ -483,7 +483,7 @@ form#add_new_subscription {
|
||||
}
|
||||
|
||||
.subscriptions-container .right {
|
||||
width: calc(50% + 1px);
|
||||
width: calc(50% - -1px);
|
||||
}
|
||||
|
||||
.subscriptions-container .right .nothing-selected {
|
||||
|
||||
@@ -461,6 +461,10 @@ def build_custom_checkers(by_lang):
|
||||
' to set -x|set -e'},
|
||||
] + whitespace_rules[0:1] # type: RuleList
|
||||
css_rules = cast(RuleList, [
|
||||
{'pattern': 'calc\([^+]+\+[^+]+\)',
|
||||
'description': "Avoid using calc with '+' operator. See #8403 : in CSS.",
|
||||
'good_lines': ["width: calc(20% - -14px);"],
|
||||
'bad_lines': ["width: calc(20% + 14px);"]},
|
||||
{'pattern': '^[^:]*:\S[^:]*;$',
|
||||
'description': "Missing whitespace after : in CSS",
|
||||
'good_lines': ["background-color: white;", "text-size: 16px;"],
|
||||
|
||||
Reference in New Issue
Block a user