X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fheader.component.scss;h=2bbde74bc7d2dbe659f2e5559915726ad0b7eff4;hb=000eb0e40d74e914f6691305511c44e89cd8bf07;hp=d1c59e8d1e290649ed732a431f6990c2fc79119b;hpb=0727cab0dfd3d53e5e9c88bfbda6bc0e090d4f12;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss index d1c59e8d1..2bbde74bc 100644 --- a/client/src/app/header/header.component.scss +++ b/client/src/app/header/header.component.scss @@ -1,10 +1,37 @@ +@import '_variables'; +@import '_mixins'; + #search-video { @include peertube-input-text($search-input-width); + padding-left: 10px; margin-right: 15px; - padding-right: 25px; // For the search icon + padding-right: 40px; // For the search icon + font-size: 14px; + + transition: box-shadow .3s ease; + + /* light border style */ + border: 1px solid var(--mainBackgroundColor); + box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px; + + &:focus { + box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px; + } &::placeholder { - color: #000; + color: var(--inputPlaceholderColor); + } + + &:focus::placeholder { + opacity: 0 !important; + } + + @media screen and (max-width: 800px) { + width: calc(100% - 150px); + } + + @media screen and (max-width: 600px) { + width: calc(100% - 70px); } } @@ -12,7 +39,8 @@ @include icon(25px); height: 21px; - background-image: url('../../assets/images/header/search.svg'); + background-color: var(--mainForegroundColor); + mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%; // yolo position: absolute; @@ -23,16 +51,25 @@ .upload-button { @include peertube-button-link; @include orange-button; + @include button-with-icon(22px, 3px, -1px); + color: var(--mainBackgroundColor) !important; margin-right: 25px; - .icon.icon-upload { - display: inline-block; - background: url('../../assets/images/header/upload.svg') no-repeat; - background-size: contain; - width: 22px; - height: 24px; - vertical-align: middle; - margin-right: 6px; + @media screen and (max-width: 800px) { + margin-right: 0; + } + + @media screen and (max-width: 600px) { + margin-right: 10px; + padding: 0 10px; + + .icon.icon-upload { + margin-right: 0; + } + + .upload-button-label { + display: none; + } } }