Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

activity: Move `.container` CSS from bootstrap to activity.css.

Aman Agrawal16f2c4195bc8
diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.css
index 506aa0d2832..f32612b10b6 100644
--- a/web/styles/portico/activity.css
+++ b/web/styles/portico/activity.css
@@ -512,3 +512,21 @@ tr.admin td:first-child {
margin-top: 5px;
}
}
+
+.container {
+ width: 940px;
+ margin-right: auto;
+ margin-left: auto;
+
+ @media (width <= 767px) {
+ width: auto;
+ }
+
+ @media (767px < width <= 979px) {
+ width: 724px;
+ }
+
+ @media (width >= 1180px) {
+ width: 1170px;
+ }
+}
diff --git a/web/third/bootstrap/css/bootstrap.portico.css b/web/third/bootstrap/css/bootstrap.portico.css
index de6091d2bfc..becf1884b2b 100644
--- a/web/third/bootstrap/css/bootstrap.portico.css
+++ b/web/third/bootstrap/css/bootstrap.portico.css
@@ -79,22 +79,6 @@ a:focus {
color: #005580;
text-decoration: underline;
}
-.container {
- width: 940px;
-}
-.container {
- margin-right: auto;
- margin-left: auto;
-}
-.container:before,
-.container:after {
- display: table;
- content: "";
- line-height: 0;
-}
-.container:after {
- clear: both;
-}
p {
margin: 0 0 10px;
}
@@ -290,9 +274,6 @@ input:focus:invalid:focus {
padding-left: 20px;
padding-right: 20px;
}
- .container {
- width: auto;
- }
.row {
margin-left: 0;
}
@@ -310,9 +291,6 @@ input:focus:invalid:focus {
.row:after {
clear: both;
}
- .container {
- width: 724px;
- }
input {
margin-left: 0;
}
@@ -330,9 +308,6 @@ input:focus:invalid:focus {
.row:after {
clear: both;
}
- .container {
- width: 1170px;
- }
input {
margin-left: 0;
}