mm-1256 - Improving view modal and close modal button
Этот коммит содержится в:
@@ -35,9 +35,18 @@ module.exports = React.createClass({
|
|||||||
<h4 className="modal-title" id="myModalLabel">{channel.display_name}</h4>
|
<h4 className="modal-title" id="myModalLabel">{channel.display_name}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div className="modal-body">
|
<div className="modal-body">
|
||||||
<p><strong>Channel Name: </strong>{channel.display_name}</p>
|
<div className="row form-group">
|
||||||
<p><strong>Channel Handle: </strong>{channel.name}</p>
|
<div className="col-sm-3 info__label">Channel Name: </div>
|
||||||
<p><strong>Channel ID: </strong>{channel.id}</p>
|
<div className="col-sm-9">{channel.display_name}</div>
|
||||||
|
</div>
|
||||||
|
<div className="row form-group">
|
||||||
|
<div className="col-sm-3 info__label">Channel Handle:</div>
|
||||||
|
<div className="col-sm-9">{channel.name}</div>
|
||||||
|
</div>
|
||||||
|
<div className="row">
|
||||||
|
<div className="col-sm-3 info__label">Channel ID:</div>
|
||||||
|
<div className="col-sm-9">{channel.id}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="modal-footer">
|
<div className="modal-footer">
|
||||||
<button type="button" className="btn btn-default" data-dismiss="modal">Close</button>
|
<button type="button" className="btn btn-default" data-dismiss="modal">Close</button>
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
|
.modal-body {
|
||||||
|
padding: 20px 15px;
|
||||||
|
}
|
||||||
.modal {
|
.modal {
|
||||||
&.image_modal {
|
&.image_modal {
|
||||||
.modal-backdrop.in {
|
.modal-backdrop.in {
|
||||||
@include opacity(0.7);
|
@include opacity(0.7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.info__label {
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
.remove__member {
|
.remove__member {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@@ -29,7 +37,7 @@
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background: $primary-color;
|
background: $primary-color;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
padding: 15px 15px 11px;
|
padding: 15px 15px 11px;
|
||||||
border: none;
|
border: none;
|
||||||
min-height: 56px;
|
min-height: 56px;
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
@@ -41,11 +49,22 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
button.close {
|
button.close {
|
||||||
margin-top: 0;
|
margin: -2px -2px 0 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@include opacity(1);
|
@include opacity(1);
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
@include single-transition(all, 0.25s, ease-in);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
&:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
span {
|
||||||
|
position: relative;
|
||||||
|
top: -1px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
|||||||
@@ -231,17 +231,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.modal {
|
.modal {
|
||||||
|
.info__label {
|
||||||
|
text-align: left;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
.modal-header {
|
.modal-header {
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
.modal-action {
|
.modal-action {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
button.close {
|
|
||||||
width: 35px;
|
|
||||||
height: 32px;
|
|
||||||
margin: -5px -10px 0;
|
|
||||||
}
|
|
||||||
.modal-title {
|
.modal-title {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user