Skip to content
This repository was archived by the owner on Jul 7, 2020. It is now read-only.
This repository was archived by the owner on Jul 7, 2020. It is now read-only.

making task list look better #7

@SM-26

Description

@SM-26

Hey,

first of all, I love you work! looks amazing!

I've been using pymdownx.tasklist, and I needed to add some css to make it look better
here is what i've been using, hope this helps

/*
Tasklist
*/
.task-list-item {
  list-style-type: none !important;
}

.task-list-item input[type="checkbox"] {
  margin: 0 4px 0.25em -20px;
  vertical-align: middle;
}

.task-list-control {
  display: inline; /* Ensure label is inline incase theme sets it to block.*/
}

.task-list-control {
  position: relative;
  display: inline-block;
}

.task-list-control input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1; /* Put the input behind the label so it doesn't overlay text */
}

.task-list-indicator {
  position: absolute;
  top: -18px;
  left: -6px;
  display: block;
  width:  14px;
  height: 14px;
  border-radius: .25rem;
}
.md-typeset .task-list-control .task-list-indicator:before {
    top: 0 em;
    left: -20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25em;
    content: "\E835";
    vertical-align: -.25em;
}
.task-list-control input[type="checkbox"]:checked + .task-list-indicator::before {
  display: block;
  margin-top: 0px;
  margin-left: 0.5px;
  font-size: 18px;
  line-height: 1;
  content: "✔";
  color: #1EBB52;
}

full repo here:
https://gitlab.com/SM26/swm_wiki

and example here:
https://sm26.gitlab.io/swm_wiki/

image

label:enhancement

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions