Neilk1021 commented on code in PR #7339:
URL: https://github.com/apache/texera/pull/7339#discussion_r3752712359


##########
frontend/src/app/hub/component/login/texera-login.component.scss:
##########
@@ -0,0 +1,160 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+$text-secondary: rgba(0, 0, 0, 0.45);
+$error: #ff4d4f;
+$bg: #f0f2f5;
+$card-bg: #fff;
+
+:host {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  min-height: 100vh;
+  padding: 32px 16px;
+  background: $bg;
+  -webkit-font-smoothing: antialiased;
+}
+
+* {
+  box-sizing: border-box;

Review Comment:
   So both have a box that is "400px" but box-sizing changes which box we're 
measuring.  
   
   Every element has nested boxen, then padding around it, then border around 
that. max-width (and width, min-width, height, etc) always refers to exactly 
one of them, and box-sizing switches what we're looking at when we say "limit 
to 400px." 
   
   Without this padding isn't included so the max-width is 472 as the padding 
isn't included in the max-width thus a total of 400 + 36 + 36 pixels.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to