From ed23e65def4fd12a5599c8ec9cda1968c662a3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E9=9F=AC?= Date: Thu, 6 Jun 2019 17:30:34 +0100 Subject: [PATCH] fix issue #3999, #4001, #4003, #3988, #3987 --- notebook/static/acc_overwrite.less | 38 +++++++++++++++++++++++++++ notebook/static/auth/css/override.css | 2 +- notebook/static/style/style.less | 2 ++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 notebook/static/acc_overwrite.less diff --git a/notebook/static/acc_overwrite.less b/notebook/static/acc_overwrite.less new file mode 100644 index 000000000..d64a348c6 --- /dev/null +++ b/notebook/static/acc_overwrite.less @@ -0,0 +1,38 @@ +//This is file created for overwriting some of bootstrap element color in order to satisfiy the color contrast greater than 4.5:1. + +.btn-danger{ + color: #ffffff; + background-color: #df0404; + border-color: #df0404; +} + +.btn-warning{ + color: #ffffff; + background-color:#b46102; + border-color: #b46102; +} + +.close { + float: right; + font-size: (@font-size-base * 1.5); + font-weight: @close-font-weight; + line-height: 1; + color: @close-color; + text-shadow: @close-text-shadow; + .opacity(.6); + + &:hover, + &:focus { + color: @close-color; + text-decoration: none; + cursor: pointer; + .opacity(1.0); +} button& { + padding: 0; + cursor: pointer; + background: transparent; + border: 0; + -webkit-appearance: none; + appearance: none; + } +} \ No newline at end of file diff --git a/notebook/static/auth/css/override.css b/notebook/static/auth/css/override.css index cda15499d..0cb116ec2 100644 --- a/notebook/static/auth/css/override.css +++ b/notebook/static/auth/css/override.css @@ -5,4 +5,4 @@ a hack to deal with our current css styles and no new styling should be added in #ipython-main-app { padding-top: 50px; text-align: center; -} \ No newline at end of file +} diff --git a/notebook/static/style/style.less b/notebook/static/style/style.less index f87f0e727..a1bcfdb55 100644 --- a/notebook/static/style/style.less +++ b/notebook/static/style/style.less @@ -33,3 +33,5 @@ // terminal @import "../terminal/less/terminal.less"; + +@import "../acc_overwrite.less";