mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-17 21:53:03 +05:30
#136: responsive popup close button
This commit is contained in:
parent
1ff6a05414
commit
16d3b8a928
@ -32,7 +32,7 @@ export default class ContactForm extends Component {
|
||||
<h2 className={popupStyles.headerTitle}>
|
||||
<Message {...messages.title} />
|
||||
</h2>
|
||||
<span className={classNames(icons.close, styles.close)} onClick={onClose} />
|
||||
<span className={classNames(icons.close, popupStyles.close)} onClick={onClose} />
|
||||
</div>
|
||||
|
||||
<Form form={form} onSubmit={this.onSubmit}>
|
||||
|
@ -5,23 +5,6 @@
|
||||
.contactForm {
|
||||
}
|
||||
|
||||
.close {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding: 35px;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
color: rgba(#000, 0.4);
|
||||
background: rgba(#000, 0);
|
||||
transition: 0.25s;
|
||||
|
||||
&:hover {
|
||||
color: rgba(#000, 0.6);
|
||||
background: rgba(#fff, 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
.philosophicalThought {
|
||||
font-family: $font-family-title;
|
||||
font-size: 19px;
|
||||
|
@ -60,6 +60,7 @@ $popupPadding: 20px;
|
||||
}
|
||||
|
||||
.header {
|
||||
position: relative;
|
||||
background: $light;
|
||||
padding: 15px $popupPadding;
|
||||
border-bottom: 1px solid #dedede;
|
||||
@ -74,3 +75,27 @@ $popupPadding: 20px;
|
||||
.body {
|
||||
padding: $popupPadding;
|
||||
}
|
||||
|
||||
.close {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding: 15px;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
color: rgba(#000, 0.4);
|
||||
background: rgba(#000, 0);
|
||||
transition: 0.25s;
|
||||
|
||||
&:hover {
|
||||
color: rgba(#000, 0.6);
|
||||
background: rgba(#fff, 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 655px) {
|
||||
.close {
|
||||
position: fixed;
|
||||
padding: 35px;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user