Commit b616c7b5 authored by Moody Salem's avatar Moody Salem

Default box-sizing to border-box everywhere

parent 9ac1bcf0
...@@ -40,7 +40,6 @@ const StyledMenuButton = styled.button` ...@@ -40,7 +40,6 @@ const StyledMenuButton = styled.button`
const StyledMenu = styled.div` const StyledMenu = styled.div`
margin-left: 0.5rem; margin-left: 0.5rem;
display: flex; display: flex;
box-sizing: border-box;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative; position: relative;
......
...@@ -51,11 +51,9 @@ const StyledNavLink = styled(NavLink).attrs({ ...@@ -51,11 +51,9 @@ const StyledNavLink = styled(NavLink).attrs({
text-decoration: none; text-decoration: none;
color: ${({ theme }) => theme.text3}; color: ${({ theme }) => theme.text3};
font-size: 20px; font-size: 20px;
box-sizing: border-box;
&.${activeClassName} { &.${activeClassName} {
border-radius: 12px; border-radius: 12px;
box-sizing: border-box;
font-weight: 500; font-weight: 500;
color: ${({ theme }) => theme.text1}; color: ${({ theme }) => theme.text1};
} }
......
...@@ -32,7 +32,6 @@ const MobilePopupWrapper = styled.div<{ height: string | number }>` ...@@ -32,7 +32,6 @@ const MobilePopupWrapper = styled.div<{ height: string | number }>`
const MobilePopupInner = styled.div` const MobilePopupInner = styled.div`
height: 99%; height: 99%;
box-sizing: border-box;
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
display: flex; display: flex;
...@@ -59,7 +58,6 @@ const Popup = styled.div` ...@@ -59,7 +58,6 @@ const Popup = styled.div`
display: inline-block; display: inline-block;
width: 100%; width: 100%;
padding: 1em; padding: 1em;
box-sizing: border-box;
background-color: ${({ theme }) => theme.bg1}; background-color: ${({ theme }) => theme.bg1};
position: relative; position: relative;
border-radius: 10px; border-radius: 10px;
......
...@@ -78,7 +78,6 @@ const Input = styled.input` ...@@ -78,7 +78,6 @@ const Input = styled.input`
background: none; background: none;
border: none; border: none;
outline: none; outline: none;
box-sizing: border-box;
border-radius: 20px; border-radius: 20px;
color: ${({ theme }) => theme.text1}; color: ${({ theme }) => theme.text1};
border-style: solid; border-style: solid;
......
...@@ -52,7 +52,6 @@ const Input = styled.input<{ active?: boolean }>` ...@@ -52,7 +52,6 @@ const Input = styled.input<{ active?: boolean }>`
font-size: 12px; font-size: 12px;
min-width: 20px; min-width: 20px;
outline: none; outline: none;
box-sizing: border-box;
&::-webkit-outer-spin-button, &::-webkit-outer-spin-button,
&::-webkit-inner-spin-button { &::-webkit-inner-spin-button {
-webkit-appearance: none; -webkit-appearance: none;
......
...@@ -125,7 +125,6 @@ export default function TokenWarningCard({ token, ...rest }: TokenWarningCardPro ...@@ -125,7 +125,6 @@ export default function TokenWarningCard({ token, ...rest }: TokenWarningCardPro
const WarningContainer = styled.div` const WarningContainer = styled.div`
max-width: 420px; max-width: 420px;
width: 100%; width: 100%;
box-sizing: border-box;
padding: 1rem; padding: 1rem;
` `
......
...@@ -45,7 +45,6 @@ const Web3StatusGeneric = styled(ButtonSecondary)` ...@@ -45,7 +45,6 @@ const Web3StatusGeneric = styled(ButtonSecondary)`
align-items: center; align-items: center;
padding: 0.5rem; padding: 0.5rem;
border-radius: 12px; border-radius: 12px;
box-sizing: border-box;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
:focus { :focus {
......
...@@ -34,7 +34,6 @@ const BodyWrapper = styled.div` ...@@ -34,7 +34,6 @@ const BodyWrapper = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
box-sizing: border-box;
padding-top: 160px; padding-top: 160px;
align-items: center; align-items: center;
flex: 1; flex: 1;
......
...@@ -10,7 +10,6 @@ export const Body = styled.div` ...@@ -10,7 +10,6 @@ export const Body = styled.div`
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),
0px 24px 32px rgba(0, 0, 0, 0.01); 0px 24px 32px rgba(0, 0, 0, 0.01);
border-radius: 30px; border-radius: 30px;
box-sizing: border-box;
padding: 1rem; padding: 1rem;
position: relative; position: relative;
margin-bottom: 10rem; margin-bottom: 10rem;
......
...@@ -182,6 +182,10 @@ body { ...@@ -182,6 +182,10 @@ body {
overflow: hidden; overflow: hidden;
} }
* {
box-sizing: border-box;
}
body > div { body > div {
height: 100%; height: 100%;
overflow: auto; overflow: auto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment