question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello, I have create small script for tampermonkey to redesign wekan board. Do you think that some css rules can used by wekan itself?

before image

after image

script for tampermonkey

// ==UserScript==
// @name         Kanban
// @namespace    https://pravdomil.com/
// @version      0.1
// @match        https://wekan.indie.host/*
// @grant        none
// ==/UserScript==

;(function() {
  const el = document.createElement("style")
  // language=CSS
  el.textContent = `
/* white background */
body { background-color: white; }

/* header bar next to top bar */
#header #header-main-bar {
    position: absolute;
    right: 70px;
    left: 300px;
    top: -3px;
    padding: 0;
    height: calc(28px + 3px);
}

/* swimlane white background, no borders, fix ellipsis */
.swimlane { background-color: white; }
.swimlane-header-wrap { border: 0 !important; }
.swimlane-header { text-overflow: initial !important; }

/* column header only for first row */
.swimlane .list-header { margin: 4px 12px 4px; }
.swimlane .list-header-name { display: none; }
div:nth-child(1 of .swimlane) .list-header { margin: 20px 12px 4px; }
div:nth-child(1 of .swimlane) .list-header-name { display: inline; }

/* cells no borders, fix height, less padding, no add new card */
.list { border: 0; background-color: white; flex: 300px 0 0; }
.list .list-body { height: 160px; padding: 0 2px; }
.list .open-minicard-composer { display: none; }
.list .open-list-composer { opacity: 0; transition: opacity .2s; }
.list .open-list-composer:hover { opacity: 1; }

/* card style */
.minicard-wrapper { margin-bottom: 2px !important; }
.minicard { box-shadow: 0 0 16px rgba(0,0,0,0.15) inset; }

/* card style for first and last column */
.swimlane .list:nth-child(2) .minicard { opacity: .5 !important; }
.swimlane .list:nth-last-child(2) .minicard { opacity: .1 !important; }

/* card details always center, menu items tweaks */
.card-details {
    position: absolute;
    z-index: 10000 !important;
    top: 0;
    bottom: 0;
    left: calc(50% - 510px / 2);
}
.pop-over-list .js-labels { display: none }
.pop-over-list .js-move-card-to-top { display: none }
.pop-over-list .js-move-card-to-bottom { display: none }
.pop-over-list .js-archive { color: darkred }

/* not needed */
.wekan-logo, .js-member, .attachments-galery { display: none; }

`

  document.body.appendChild(el)
})()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:31 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
fnordshcommented, Jun 29, 2018

FWIW, apart from the inner shadows, I actually quite like the current UI design.

Themes would be great in theory, but I don’t know if it’s worth the time and effort that would be needed to maintain them. RocketChat lets an admin enter custom CSS to patch certain aspects of the UI; maybe something like that might work for Wekan, too? I think that could give us 50% of the benefits of a theme engine, for 5% of the work to implement it. (The numbers are obviously made up, but I think you get what I mean.)

1reaction
xet7commented, Jun 28, 2018

@pravdomil

Please forgive me, and don’t close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

43 Board redesign ideas | skateboard design ... - Pinterest
Nov 19, 2019 - Explore Marcel Jansens's board "Board redesign" on Pinterest. See more ideas about skateboard design, skateboard art, skateboard.
Read more >
What exactly is a PCB redesign? And when is it done?
The PCB redesign is a complex process involving verification of existing production documentation, transformation of documentation into a ...
Read more >
Circuit Board Design, Redesign, & DFM | Mathis Electronics
Circuit Board Redesign and DFM in North Carolina. Mathis Electronics redesigns circuit boards to last a lifetime guaranteed.
Read more >
Redesign Art Board Prints for Sale | Redbubble
High quality Redesign inspired art board prints by independent artists and designers from around the world. Professionally printed on watercolor textured ...
Read more >
Redesign of a spine board: Proof of concept evaluation
Sacral pressure ulcers are a significant problem in individuals following spinal cord injury (SCI) and are felt to be in part due to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found