From 1aa477ac2f0e9195497899691bb5cc16a7034c01 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 12 Mar 2016 19:46:06 +0100 Subject: Customized more doorkeeper views, only logged in users can create oauth apps --- app/assets/stylesheets/application.scss | 2 +- app/assets/stylesheets/dashboard.scss | 74 +++++++++++++++++++++++++++++++-- app/assets/stylesheets/home.scss | 11 +++++ 3 files changed, 83 insertions(+), 4 deletions(-) (limited to 'app/assets') diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index e393e2a23..9114acde4 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -8,7 +8,7 @@ $text-color: #333030; $lighter-text-color: #8b8687; @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,400italic); -@import url(https://fonts.googleapis.com/css?family=Roboto+Mono); +@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,500); @import "font-awesome"; /* http://meyerweb.com/eric/tools/css/reset/ diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index 05d495988..74192dafa 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -30,6 +30,11 @@ text-align: center; margin-right: 5px; } + + &:hover { + color: #fff; + background: darken(#282c37, 1%); + } } .active { @@ -86,14 +91,12 @@ background: #fff; padding: 20px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); - border-bottom: 1px solid #d9e1e8; color: #282c37; font-size: 16px; overflow: hidden; &.alternate { background: lighten(#282c37, 10%); - border-bottom: 1px solid lighten(#282c37, 10%); text-align: center; } @@ -104,6 +107,7 @@ li { display: inline-block; + margin-left: 7px; } } @@ -119,7 +123,71 @@ border-radius: 0 4px 4px 0; .dashboard__content__content { - //padding: 20px; + padding: 20px; + color: #282c37; + line-height: 18px; + + h3 { + font-size: 14px; + font-weight: 500; + margin-bottom: 15px; + } + + p { + margin-bottom: 15px; + } + + samp { + font-family: 'Roboto Mono', monospace; + } + + ul { + list-style: circle; + padding-left: 15px; + margin-bottom: 15px; + } + + .table { + width: 100%; + + th { + font-weight: 500; + text-align: left; + border-bottom: 1px solid lighten(#282c37, 55%); + } + + th, td { + padding: 5px 0; + line-height: 18px; + } + } + + a { + color: #2b90d9; + text-decoration: underline; + + &:hover { + text-decoration: none; + } + } + + .btn { + display: inline-block; + border: 0; + background: #2b90d9; + border-radius: 4px; + padding: 4px 16px; + font-size: 12px; + font-weight: 500; + color: #fff; + cursor: pointer; + font-family: 'Roboto', sans-serif; + text-decoration: none; + + &:hover { + background: lighten(#2b90d9, 5%); + } + } } .dashboard__top-bar { diff --git a/app/assets/stylesheets/home.scss b/app/assets/stylesheets/home.scss index e69de29bb..c9f2740ad 100644 --- a/app/assets/stylesheets/home.scss +++ b/app/assets/stylesheets/home.scss @@ -0,0 +1,11 @@ +.api-descriptions { + .address { + samp { + font-weight: 400; + + &.method { + font-weight: 500; + } + } + } +} -- cgit