X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fheader.component.scss;h=d79e6274b28f5107788d33af4d44e92dd25d7332;hb=07fa4c97ca50b83b0bee9230da97d02401b4e05f;hp=7ba8ef26cf174f2574c124c22d4f072ad7bc401f;hpb=f3aaa9a95cc2b61f1f255472d7014d08faa66561;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss index 7ba8ef26c..d79e6274b 100644 --- a/client/src/app/header/header.component.scss +++ b/client/src/app/header/header.component.scss @@ -1,3 +1,6 @@ +@import '_variables'; +@import '_mixins'; + #search-video { @include peertube-input-text($search-input-width); margin-right: 15px; @@ -6,16 +9,22 @@ &::placeholder { color: #000; } + + @media screen and (max-width: 800px) { + width: calc(100% - 150px); + } + + @media screen and (max-width: 600px) { + width: calc(100% - 70px); + } } .icon.icon-search { - display: inline-block; - background: url('../../../assets/images/header/search.svg') no-repeat; - background-size: contain; - width: 25px; + @include icon(25px); height: 21px; - vertical-align: middle; - cursor: pointer; + + background-image: url('../../assets/images/header/search.svg'); + // yolo position: absolute; margin-left: -50px; @@ -24,16 +33,33 @@ .upload-button { @include peertube-button-link; + @include orange-button; margin-right: 25px; + @media screen and (max-width: 800px) { + margin-right: 0; + } + .icon.icon-upload { - display: inline-block; - background: url('../../../assets/images/header/upload.svg') no-repeat; - background-size: contain; - width: 22px; + @include icon(22px); + + background-image: url('../../assets/images/header/upload.svg'); height: 24px; vertical-align: middle; margin-right: 6px; } + + @media screen and (max-width: 600px) { + margin-right: 10px; + padding: 0 10px; + + .icon.icon-upload { + margin-right: 0; + } + + .upload-button-label { + display: none; + } + } }