Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
03d9d043
Commit
03d9d043
authored
5 years ago
by
Neuber, Eugen Ramon
Committed by
Reiter, Christoph
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove BULMA.CSS
TODO: rollup.config.js cleanup
parent
a5695602
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
packages/auth/rollup.config.js
+1
-1
1 addition, 1 deletion
packages/auth/rollup.config.js
packages/auth/src/vpu-auth-demo.js
+15
-3
15 additions, 3 deletions
packages/auth/src/vpu-auth-demo.js
packages/auth/src/vpu-auth.js
+32
-4
32 additions, 4 deletions
packages/auth/src/vpu-auth.js
with
48 additions
and
8 deletions
packages/auth/rollup.config.js
+
1
−
1
View file @
03d9d043
...
...
@@ -42,7 +42,7 @@ export default {
include
:
'
node_modules/**
'
}),
json
(),
url
({
url
({
// TODO: remove when dependecy for BULMA.CSS is deleted
limit
:
0
,
include
:
[
"
node_modules/bulma/**/*.css
"
,
...
...
This diff is collapsed.
Click to expand it.
packages/auth/src/vpu-auth-demo.js
+
15
−
3
View file @
03d9d043
...
...
@@ -28,10 +28,22 @@ class AuthDemo extends LitElement {
render
()
{
commonUtils
.
initAssetBaseURL
(
'
vpu-auth-src
'
);
const
bulmaCSS
=
commonUtils
.
getAssetURL
(
bulmaCSSPath
);
return
html
`
<link rel="stylesheet" href="
${
bulmaCSS
}
">
<style>
/* from BULMA.CSS */
.section {
padding: 3rem 1.5rem;
}
.content h1 {
font-size: 2em;
margin-bottom: .5em;
}
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
color: #363636;
font-weight: 600;
line-height: 1.125;
}
</style>
<section class="section">
<div class="container">
<h1 class="title">Auth-Demo</h1>
...
...
This diff is collapsed.
Click to expand it.
packages/auth/src/vpu-auth.js
+
32
−
4
View file @
03d9d043
...
...
@@ -242,7 +242,38 @@ class VPUAuth extends LitElement {
static
get
styles
()
{
// language=css
return
css
`
.dropdown, img.login {
${
commonUtils
.
getThemeCSS
()}
.dropdown.is-active .dropdown-menu, .dropdown.is-hoverable:hover .dropdown-menu {
display: block;
}
.dropdown-menu {
display: none;
min-width: 12rem;
padding-top: 4px;
position: absolute;
z-index: 20;
}
.dropdown-content {
background-color: white;
border-radius: var(--vpu-border-radius);
box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
padding-bottom: 0.5rem;
padding-top: 0.5rem;
}
.dropdown-item {
color: #4a4a4a;
display: block;
font-size: 0.875rem;
line-height: 1.5;
padding: 0.375rem 1rem;
position: relative;
}
.dropdown, img.login {
cursor: pointer;
}
...
...
@@ -315,10 +346,7 @@ class VPUAuth extends LitElement {
render
()
{
commonUtils
.
initAssetBaseURL
(
'
vpu-auth-src
'
);
const
bulmaCSS
=
commonUtils
.
getAssetURL
(
bulmaCSSPath
);
return
html
`
<link rel="stylesheet" href="
${
bulmaCSS
}
">
<div>
${
this
.
loggedIn
?
this
.
renderLoggedIn
()
:
this
.
renderLoggedOut
()}
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment