function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cyberdynebotcyberdynebot 

Add Padding on Larger Resolutions

I'd like to add SLDS padding for a minimum width value of an input field. Have the padding set in my code, I just need it to only display when the width of the screen is larger than 760px

Cmp
<div class="minimumWidth">
      <lightning:input class=" slds-size_1-of-1 slds-medium-size--1-of-2 slds-large-size--1-of-2 "
       name="field1" label="field1" required="true" aura:id="field1" />
</div>

Css
.THIS .minimumWidth .slds-p-left_medium{min-width:760px;}

 
Salesforce DreamerSalesforce Dreamer
hi,
As per http://bobbuzzard.blogspot.com/2015/10/responsive-design-with-lightning-design.html, did you try doing the below in your lightning css code?
/* hide medium and above */
@media all and (min-width: 760px) {
    .THIS .minimumWidth .slds-p-left_medium {
        min-width:760px;
    }
}
cyberdynebotcyberdynebot
I tried using the @media tag but it just makes the input field smaller and doesn't apply to the padding (slds-p-left_medium)