ulovliglogning.dk/_scss/module/_qa.scss

60 lines
1,002 B
SCSS
Raw Normal View History

2018-01-25 23:17:09 +00:00
.qa {
width: 100%;
2018-01-26 14:52:53 +00:00
padding: 2rem 1.5rem;
padding-left: 2rem;
padding-right: 2rem;
box-sizing: border-box;
&:first-of-type{
padding-top: 0;
}
2018-01-25 23:17:09 +00:00
.qa--question,
2018-02-03 17:17:02 +00:00
.qa--answer {
2018-01-25 23:17:09 +00:00
box-sizing: border-box;
}
.qa--question {
2018-01-26 14:52:53 +00:00
padding-bottom: 1rem;
&:last-of-type {
padding-bottom: 0;
2018-01-25 23:17:09 +00:00
}
}
2018-01-26 14:52:53 +00:00
2018-02-03 17:17:02 +00:00
.qa--answer {
2018-01-26 14:52:53 +00:00
p {
max-width: 100%;
&:last-of-type {
margin-bottom: 0;
}
}
2018-01-25 23:17:09 +00:00
}
2018-01-26 14:52:53 +00:00
@include media-breakpoint-up(md) {
display: flex;
align-items: flex-start;
justify-content: center;
.qa--question {
width: 22rem;
padding-bottom: 35px;
margin-right: 2rem;
background-image: url(/assets/img/question.svg);
background-position: bottom right;
background-repeat: no-repeat;
h3 {
text-align: right;
}
}
2018-02-03 17:17:02 +00:00
.qa--answer {
2018-01-26 14:52:53 +00:00
max-width: 40rem;
p {
margin-bottom: 1em;
&:last-of-type {
margin-bottom: 0;
}
}
}
}
2018-01-25 23:17:09 +00:00
}