Emilia Posted November 20, 2020 Share Posted November 20, 2020 Hi, So I've been looking for the html code for the Block "Video Edit" that's used in the upload page. There is one element style that's used inline and I can't find it anywhere. I've renamed "Sponsored By" to "Studio" and I want to edit that style="width: 100px;" that's used there to 100%. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted November 21, 2020 Share Posted November 21, 2020 This is styled by select2 javascript that we have actually removed from the latest theme version. This javascript is for allowing styling selectboxes and providing more functionality to them. However it is too heavyweight and results in huge CSS + JS fragment added into theme files. So we decided to get rid of this and use some native CSS way to style selectboxes. If you want to disable it as well, please do the following: 1) In your theme CSS file remove the first huge line starting with this: .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.... 2) In /static/js/main.min.js find this library and remove it: /*! Select2 4.0.6-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */ ...library js code... 3) Add these styles into CSS: form .selectbox { cursor: pointer; padding: 10px 20px; -moz-appearance: none; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0,0,51,32' stroke='white' fill='white' width='10' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4.544c-0 0.005-0 0.011-0 0.017 0 1.277 0.486 2.44 1.284 3.315l-0.004-0.004 21.248 22.784c0.767 0.827 1.859 1.343 3.072 1.343s2.305-0.516 3.070-1.34l0.002-0.003 21.248-22.784c0.803-0.873 1.296-2.043 1.296-3.328s-0.492-2.455-1.299-3.332l0.003 0.004c-0.773-0.861-1.89-1.401-3.133-1.401-1.212 0-2.305 0.513-3.073 1.334l-0.002 0.002-18.112 19.456-18.112-19.456c-0.77-0.823-1.862-1.337-3.075-1.337-1.243 0-2.36 0.539-3.13 1.397l-0.003 0.004c-0.794 0.871-1.28 2.034-1.28 3.311 0 0.006 0 0.012 0 0.018v-0.001z'%3E%3C/path%3E%3C/svg%3E"), linear-gradient(to bottom, #2e2e2e 0%,#2e2e2e 100%); background-repeat: no-repeat, repeat; background-position: right 10px top 50%; background-size: auto; } form .selectbox::-ms-expand { display: none; } form .selectbox:disabled, form .selectbox[aria-disabled=true] { color: graytext; } form .selectbox option { font-weight:normal; } Quote Link to comment Share on other sites More sharing options...
Emilia Posted November 21, 2020 Author Share Posted November 21, 2020 Thanks, I'm using theme 8.1 and if I follow this update, will it automatically add those fixes for me you mentioned above? Quote Link to comment Share on other sites More sharing options...
Tech Support Posted November 22, 2020 Share Posted November 22, 2020 Partly yes, you won't need to do this as you will completely update this file from KVS demo: On 11/21/2020 at 3:04 AM, Tech Support said: 2) In /static/js/main.min.js find this library and remove it: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.