I'm extending the blank theme and adding styles to an _extend.less file located in
/app/design/frontend/neil/mytheme/web/css/source/_extend.less
Inside the file iv've got the following code
// common & mobile styles
& when (@media-common = true) {
.header.panel > .header.links > li {
margin: 0;
a {
color: @dark-grey;
display: inline-block;
font-size: 13px;
padding: 0 5px;
}
&:hover > a {
color: @primary__color;
}
}
}
// Should be everything above the screen_m breakpoint (768px) - but still doesn't work
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
.header.panel > .header.links > li {
margin: 133px !important;
}
}
My problem is that my desktop styles aren't being applied, I've tried a whole load of ways of getting this to work but nothing is working.
I tried wrapping them in a normal media query like this...
// desktop
@media all and (min-device-width : 768px) {
.header.panel > .header.links > li {
margin: 133px;
}
}
Which loaded the styles in, but it was getting overridden by a style defined in...
/app/design/frontend/neil/mytheme/Magento_Theme/web/css/source/_module.less
Could somebody please point me in the right direction with this because I feel like I'm going round in circles.