Merge pull request #1627 from florianorben/ux-formatting-task-list

fix misaligned checkbox; remove list-style from list-elements with checkboxes
This commit is contained in:
Joram Wilander
2015-12-07 10:13:35 -05:00
41 changed files with 107 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
const isTaskList = taskListReg.exec(text);
if (isTaskList) {
return `<li>${'<input type="checkbox" disabled="disabled" ' + (isTaskList[1] === ' ' ? '' : 'checked="checked" ') + '/> '}${text.replace(taskListReg, '')}</li>`;
return `<li class="list-item--task-list">${'<input type="checkbox" disabled="disabled" ' + (isTaskList[1] === ' ' ? '' : 'checked="checked" ') + '/> '}${text.replace(taskListReg, '')}</li>`;
}
return `<li>${text}</li>`;
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.access-history__table {
display: table;
width: 100%;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
@keyframes highlight {
from { background: rgba(yellow, 0.5);}
to { background: none;}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#admin_controller {
> div {
height: 100%;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
html, body {
height: 100%;
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
/*!
* Bootstrap Colorpicker
* http://mjolnic.github.io/bootstrap-colorpicker/

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.inner__wrap {
@include single-transition(all, 0.5s, ease);
&.move--left {

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.error-bar {
background-color: #0099FF;
text-align:center;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
body {
&.error {
.container-fluid {

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.preview-container {
position: relative;
margin-top: 25px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
/*!
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.footer-pane {
background: #eee;
padding-bottom: 1em;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.form-horizontal {
.modal-intro {
margin: -10px 0 30px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.copy-link-confirm {
display: inline-block;
float: left;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#channel-header {
@include flex(0 0 56px);
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.loading-screen {
display: table;
width: 100%;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.markdown__heading {
font-weight: 700;
line-height: 1.5;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.mention {
color: #fff;
background: $primary-color;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#channel_members_modal .modal-body {
min-height: 110px;
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#navbar{
input {
margin: 0px 5px 0px 2px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.oauth-prompt {
background: #fff;
border: 1px solid #ddd;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.ps-container {
overflow: hidden !important; }
.ps-container.ps-active-x > .ps-scrollbar-x-rail, .ps-container.ps-active-y > .ps-scrollbar-y-rail {

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.channel-header__info .popover-content {
max-height: 250px;
overflow: auto;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.custom-textarea {
white-space:pre-wrap;
word-wrap:break-word;
@@ -615,11 +617,36 @@ body.ios {
padding: 0 0 0 20px
}
li.list-item--task-list ul, li.list-item--task-list ol {
margin-left: 20px;
}
li.list-item--task-list ul {
padding-left: 0;
}
li:not(.list-item--task-list) li.list-item--task-list, li:not(.list-item--task-list) li.list-item--task-list ~ li {
margin-left: -20px;
}
li input[type="checkbox"]:disabled {
vertical-align: sub;
vertical-align: top;
cursor: default;
}
}
ul li.list-item--task-list, ul li.list-item--task-list ~ li {
list-style-type: none;
}
ul li.list-item--task-list ~ li:not(.list-item--task-list) {
text-indent: 3px;
&:before {
content: "";
margin-right: 8px;
}
}
}
.post__link {

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.post-right__container {
@include display-flex;
@include flex-direction(column);

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
@media screen and (max-width: 1800px) {
.inner__wrap {
&.move--left {

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#channel-header .search-bar__container {
padding: 0 8px 0 3px;
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
@import "access-history";
@import "activity-log";
@import "webhooks";

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.sidebar--left {
position: absolute;
width: 220px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.sidebar--menu {
position: absolute;
width: 220px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.sidebar--right {
position: absolute;
width: 400px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.signup-header {
width:100%;
line-height: 33px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.team_statistics {
.total-count {
margin: 1em 0;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.suggestion-list {
width: 100%;
z-index: 100;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
#recentMentionsTooltip {
.tooltip-arrow {
margin-left: 10px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.tip-backdrop {
background: rgba(black, 0.5);
position: absolute;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
@function em($pixels, $context: 14px) {
@return #{$pixels/$context}em
}

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.video-div {
position:relative;
max-width: 480px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.webhooks__container {
background: rgba(black, 0.1);
border: 1px solid;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
.welcome-info {
max-width: 550px;
margin-top: 50px;

View File

@@ -1,3 +1,5 @@
@charset "UTF-8";
/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent: