fix misaligned checkbox; remove list-style from list-elements with checkboxes

Этот коммит содержится в:
Florian Orben
2015-12-04 23:14:31 +01:00
родитель 1bee1e06e4
Коммит 355056622b
41 изменённых файлов: 107 добавлений и 2 удалений

Просмотреть файл

@@ -228,7 +228,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
const isTaskList = taskListReg.exec(text); const isTaskList = taskListReg.exec(text);
if (isTaskList) { 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>`; return `<li>${text}</li>`;
} }

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

@@ -1,3 +1,5 @@
@charset "UTF-8";
.custom-textarea { .custom-textarea {
white-space:pre-wrap; white-space:pre-wrap;
word-wrap:break-word; word-wrap:break-word;
@@ -616,11 +618,36 @@ body.ios {
padding: 0 0 0 20px 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 { li input[type="checkbox"]:disabled {
vertical-align: sub; vertical-align: top;
cursor: default; 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 { .post__link {

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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