forked from HyeokjinKang/dark-benedu
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/DIMI19WP/better-benedu
- Loading branch information
Showing
6 changed files
with
124 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# better-benedu | ||
Benedu의 디자인을 크롬 익스텐션을 통해 바꿔줍니다. | ||
Maintained by 강혁진, 민유, 정한 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap"); | ||
|
||
body { | ||
font-family: "Noto Sans KR", "나눔스퀘어", "나눔바른고딕", Arial; | ||
} | ||
|
||
.skin-2 .navbar { | ||
background: #393939; | ||
} | ||
|
||
.navbar-brand { | ||
display: none; | ||
} | ||
|
||
img.pull-left { | ||
content: url("https://raw.githubusercontent.com/HyeokjinKang/better-benedu/master/icon64.png"); | ||
margin-top: 6px; | ||
height: 24px; | ||
} | ||
.menu-min { | ||
width: 60px !important; | ||
} | ||
|
||
.sidebar.menu-min.compact { | ||
width: 60px !important; | ||
} | ||
|
||
.sidebar-shortcuts-mini { | ||
margin-left: 9px; | ||
} | ||
|
||
.nav-list > li > a > .menu-icon { | ||
width: 60px !important; | ||
} | ||
|
||
#___sharetoclassroom_0 { | ||
display: none !important; | ||
} | ||
|
||
.skin-2 .sidebar.menu-min .nav-list > li > a > .menu-text { | ||
margin-left: 18px; | ||
} | ||
|
||
.user-info { | ||
display: none; | ||
} | ||
|
||
.ace-nav > li { | ||
border: none; | ||
} | ||
|
||
.fa-clock-o { | ||
color: white !important; | ||
} | ||
|
||
.glyphicon { | ||
color: white !important; | ||
} | ||
|
||
small > a { | ||
color: white !important; | ||
} | ||
|
||
.ace-nav > li.light-blue > a { | ||
background-color: #393939 !important; | ||
} | ||
|
||
#sidebar > div.nav-wrap-up.pos-rel > div.nav-wrap > div > ul > li { | ||
border: none; | ||
} | ||
|
||
/* 배경 색 변경 */ | ||
.page-content { | ||
height: 100%; | ||
background-color: #393939; | ||
} | ||
|
||
.main-content-inner { | ||
height: calc(100vh - 45px); | ||
} | ||
|
||
#main-container { | ||
height: 100vh; | ||
} | ||
|
||
/* 버튼 색 변경 */ | ||
.skin-2 .navbar .navbar-toggle { | ||
background-color: #393939; | ||
} | ||
|
||
.skin-2 .nav-list > li.hover-show > a { | ||
background-color: #393939 !important; | ||
} | ||
|
||
.sidebar.menu-min .nav-list > li > .submenu { | ||
left: 59px; | ||
} | ||
|
||
/* 푸터 삭제 */ | ||
.footer { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
const url = window.location.href; | ||
|
||
const inject = path => { | ||
const injectCss = path => { | ||
let link = document.createElement("link"); | ||
link.setAttribute("rel", "stylesheet"); | ||
link.setAttribute("type", "text/css"); | ||
link.setAttribute("href", chrome.extension.getURL(path)); | ||
document.getElementsByTagName("head")[0].appendChild(link); | ||
} | ||
|
||
const injectJs = path => { | ||
let script = document.createElement("script"); | ||
script.setAttribute("src", chrome.extension.getURL(path)); | ||
document.getElementsByTagName("body")[0].appendChild(script); | ||
} | ||
|
||
if(url.includes("benedu.co.kr")) { | ||
inject("css/global.css"); | ||
injectCss("css/global.css"); | ||
if(url.includes("/StudentHome")) { | ||
inject("css/studentHome.css"); | ||
injectCss("css/studentHome.css"); | ||
injectJs("js/studentHome.js"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters