trestle-omniauth 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb821445e9fa6954e96566c3fa2704dff91230d370887423863ab09043b73fe0
4
- data.tar.gz: 9b4cb0cd3d0e9611125661e7a2c6a2c72717773e8a24aa9b48f4c73b5aa22ce2
3
+ metadata.gz: 62988e00ce5622db99967b28f6346fa943acd0af9eebc77458e61f048b578952
4
+ data.tar.gz: a2e863ffa297a27cca455b128697deccf26e58a8091af3033643718c66ef024e
5
5
  SHA512:
6
- metadata.gz: 281601da02088980e18b2d144d3906320e8604bece9829b1569243702d780564203d514908acc3a2c065bf9e17998ec668e175fc963778e8232eb39d50b0b615
7
- data.tar.gz: d7dd709a2b6fbb0c79e86544bb76fb9355048b77bf501970668a9d2bf972143f21c052e49b3ef45c1dec6bda9918992e6e752ff611697275967ad44ebc955574
6
+ metadata.gz: 1a74c2b32a804ba55d8111caed8766cf5706956eb2063892ec8c796ffc2be8f4183744c77e9bfbf62ec644400c120dba4149fb5430f3c4d47b15151f5fcb32ce
7
+ data.tar.gz: b742fba0bc513f5f28444a9ffe73ed1dc7bc85c4c2b9b9ed38612800fada43a6e2b864f8a559d0819486d091cb3786df409010f6f8790d27c0ecab0ce035dec0
@@ -0,0 +1 @@
1
+ .auth-body{display:-webkit-box;display:flex;color:#fff}.auth-body .container{margin:auto;width:320px}.auth-header{text-align:center;margin-bottom:20px}.auth-header h1{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;font-size:1.75rem;font-weight:500;text-shadow:rgba(0,0,0,.5) 0 1px 1px;padding:.75rem 1rem}.auth-header img{max-width:80%;max-height:100%}.auth-header span{margin-left:10px}.login-form .form-control,.login-form .input-group-text{background:hsla(0,0%,100%,.1);border:0}.login-form .form-control{color:#fff;font-size:1.1rem;padding:1.75rem .75rem}.login-form .form-control:focus{outline-color:transparent;outline-style:none;box-shadow:none}.login-form .form-control::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control::-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control::placeholder{color:hsla(0,0%,100%,.5)}.login-form .form-control:-webkit-autofill{-webkit-text-fill-color:#fff}.login-form .form-control:-webkit-autofill,.login-form .form-control:-webkit-autofill:active,.login-form .form-control:-webkit-autofill:focus,.login-form .form-control:-webkit-autofill:hover{-webkit-transition:background-color 9999999s ease-in-out 0s;transition:background-color 9999999s ease-in-out 0s}.login-form .input-group-prepend{margin-right:0}.login-form .input-group-text{color:hsla(0,0%,100%,.5);padding:.375rem .25rem .375rem 1rem}.login-form .btn-primary{box-shadow:0 0 2px rgba(0,0,0,.1);padding-top:.75rem;padding-bottom:.75rem}.login-form .alert-danger{background-color:rgba(222,116,113,.75)}.login-form .remember-me{font-size:.95rem;line-height:1.5;padding-left:0}.login-form .remember-me .custom-control-label{display:block;cursor:pointer;background:rgba(0,0,0,.075);color:hsla(0,0%,100%,.75);border-radius:.25rem;padding:.75em 1.5em .75em 3.25em}.login-form .remember-me .custom-control-label:hover{background:rgba(0,0,0,.125)}.login-form .remember-me .custom-control-label:after,.login-form .remember-me .custom-control-label:before{top:.925em;left:1.1em}
@@ -0,0 +1 @@
1
+ .userbox{-webkit-box-ordinal-group:100;order:99;padding:2px 0}.userbox>a{color:#333;display:block;padding:2px 0;font-weight:400;line-height:40px}.userbox>a:focus,.userbox>a:hover{text-decoration:none}.userbox .avatar{vertical-align:top;margin-left:6px}.userbox .dropdown-toggle:after{vertical-align:middle}@media (max-width:767.98px){.userbox{display:block;position:relative;z-index:5}.userbox .name{display:none}.userbox .avatar{border:1px solid hsla(0,0%,100%,.25)}}
@@ -0,0 +1,6 @@
1
+ /*
2
+ * This file is left as an extension point for user customization.
3
+ *
4
+ * It will be overridden by the similarly named file within
5
+ * the app/assets folder of the Rails application.
6
+ */
@@ -0,0 +1,2 @@
1
+ //= require trestle/omniauth/bundle
2
+ //= require trestle/_custom-omniauth
@@ -5,21 +5,27 @@
5
5
  <meta content='width=device-width, initial-scale=1' name='viewport'>
6
6
  <meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'>
7
7
 
8
- <meta content='no-cache' name='turbolinks-cache-control'>
8
+ <% if Trestle.config.turbolinks %>
9
+ <meta content='no-cache' name='turbolinks-cache-control'>
10
+ <% end %>
9
11
 
10
12
  <%= csrf_meta_tags %>
11
13
 
12
14
  <title><%= Trestle.config.site_title %></title>
13
15
 
16
+ <%= stylesheet_link_tag "trestle/admin", 'data-turbolinks-track': 'reload' %>
17
+ <%= stylesheet_link_tag "trestle/theme", 'data-turbolinks-track': 'reload' if Trestle.config.theme %>
18
+ <%= stylesheet_link_tag "trestle/custom", 'data-turbolinks-track': 'reload' %>
19
+
14
20
  <%= stylesheet_link_tag "trestle/omniauth", 'data-turbolinks-track': 'reload' %>
21
+
22
+ <%= javascript_include_tag "turbolinks" if Trestle.config.turbolinks %>
23
+
24
+ <%= hook "auth.head" %>
15
25
  </head>
16
26
 
17
- <body>
27
+ <body class="auth-body theme-bg-dark">
18
28
  <main class="container">
19
- <header class="auth-header">
20
- <h1><%= trestle_omniauth_title %></h1>
21
- </header>
22
-
23
29
  <%= yield %>
24
30
  </main>
25
31
  </body>
@@ -1,5 +1,5 @@
1
1
  module Trestle
2
2
  module Omniauth
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trestle-omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Brundage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.8'
33
+ version: '0.9'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.8'
40
+ version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: omniauth
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -76,11 +76,11 @@ files:
76
76
  - MIT-LICENSE
77
77
  - README.md
78
78
  - Rakefile
79
+ - app/assets/bundle/trestle/omniauth/bundle.css
80
+ - app/assets/bundle/trestle/omniauth/userbox.css
79
81
  - app/assets/config/trestle_omniauth_manifest.js
80
- - app/assets/stylesheets/trestle/_custom-omniauth.scss
81
- - app/assets/stylesheets/trestle/omniauth.scss
82
- - app/assets/stylesheets/trestle/omniauth/_defaults.scss
83
- - app/assets/stylesheets/trestle/omniauth/userbox.scss
82
+ - app/assets/stylesheets/trestle/_custom-omniauth.css
83
+ - app/assets/stylesheets/trestle/omniauth.css
84
84
  - app/controllers/trestle/omniauth/application_controller.rb
85
85
  - app/controllers/trestle/omniauth/sessions_controller.rb
86
86
  - app/helpers/trestle/omniauth/application_helper.rb
@@ -1,4 +0,0 @@
1
- // This file is left as an extension point for user customization.
2
- //
3
- // It will be overridden by the similarly named file within
4
- // the app/assets folder of the Rails application.
@@ -1,66 +0,0 @@
1
- // User-defined variables
2
- @import "trestle/support";
3
- @import "omniauth/defaults";
4
-
5
- // 3rd party dependencies
6
- @import "trestle/bootstrap";
7
- @import "trestle/font-awesome";
8
-
9
- html, body {
10
- height: 100%;
11
- }
12
-
13
- body {
14
- -webkit-font-smoothing: antialiased;
15
-
16
- margin: 0;
17
- overflow: hidden;
18
-
19
- color: white;
20
- background: $auth-bg;
21
-
22
- display: flex;
23
- }
24
-
25
- .container {
26
- margin: auto;
27
- width: 320px;
28
- }
29
-
30
- a {
31
- color: rgba(white, 0.75);
32
- &:hover { color: white; }
33
- }
34
-
35
- .btn {
36
- box-shadow: rgba(black, 0.1) 0 0 2px;
37
- padding: 12px;
38
- font-size: 16px;
39
- margin-bottom: 12px;
40
- }
41
-
42
- .btn-primary {
43
- outline: none;
44
-
45
- color: $auth-login-btn-color;
46
- background: $auth-login-btn-bg;
47
- border: $auth-login-btn-border;
48
-
49
- &:hover {
50
- background-color: darken($auth-login-btn-bg, 2.5%);
51
- border-color: darken($auth-login-btn-border, 5%);
52
- }
53
-
54
- &:focus, &:active {
55
- background-color: darken($auth-login-btn-bg, 5%);
56
- border-color: darken($auth-login-btn-border, 10%);
57
- }
58
-
59
- &:active:focus {
60
- outline: none !important;
61
- background-color: darken($auth-login-btn-bg, 10%);
62
- border-color: darken($auth-login-btn-border, 15%);
63
- }
64
- }
65
-
66
- @import "trestle/custom-omniauth";
@@ -1,4 +0,0 @@
1
- $auth-bg: $theme-bg !default;
2
- $auth-login-btn-color: $btn-primary-color !default;
3
- $auth-login-btn-border: $btn-primary-border !default;
4
- $auth-login-btn-bg: $btn-primary-bg !default;
@@ -1,49 +0,0 @@
1
- @import "trestle/support";
2
-
3
- .userbox {
4
- margin-top: 2px;
5
- margin-bottom: 2px;
6
-
7
- > a {
8
- color: $text-color;
9
-
10
- display: block;
11
- padding: 2px 0;
12
-
13
- font-size: 14px;
14
- font-weight: normal;
15
- line-height: 40px;
16
-
17
- &:hover, &:focus {
18
- text-decoration: none;
19
- }
20
- }
21
-
22
- .avatar {
23
- vertical-align: top;
24
- margin-left: 6px;
25
- }
26
-
27
- .name {
28
- color: $text-color;
29
- }
30
- }
31
-
32
- @include mobile {
33
- .userbox {
34
- position: relative;
35
- z-index: 5;
36
-
37
- > a, .name {
38
- color: white;
39
- }
40
-
41
- .name {
42
- display: none;
43
- }
44
-
45
- .avatar {
46
- border: 1px solid rgba(white, 0.25);
47
- }
48
- }
49
- }