Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
6de3558a
Commit
6de3558a
authored
May 10, 2022
by
Lyza Danger Gardner
Committed by
Lyza Gardner
May 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove local patterns CSS and Buttons patterns page
parent
1eb65bfa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
49 deletions
+1
-49
index.js
dev-server/ui-playground/index.js
+1
-9
frontend-shared.scss
src/styles/frontend-shared.scss
+0
-34
_index.scss
src/styles/sidebar/components/_index.scss
+0
-3
ui-playground.scss
src/styles/ui-playground/ui-playground.scss
+0
-3
No files found.
dev-server/ui-playground/index.js
View file @
6de3558a
import
{
startApp
}
from
'@hypothesis/frontend-shared/lib/pattern-library'
;
import
ButtonPatterns
from
'./components/ButtonPatterns'
;
import
{
sidebarIcons
}
from
'../../src/sidebar/icons'
;
/** @type {import('@hypothesis/frontend-shared/lib/pattern-library').PlaygroundRoute[]} */
const
extraRoutes
=
[
{
route
:
'/buttons'
,
title
:
'Buttons'
,
component
:
ButtonPatterns
,
group
:
'components'
,
},
];
const
extraRoutes
=
[];
startApp
({
baseURL
:
'/ui-playground'
,
extraRoutes
,
icons
:
sidebarIcons
});
src/styles/frontend-shared.scss
deleted
100644 → 0
View file @
1eb65bfa
// Extensions and/or overrides to shared component styles from the
// `@hypothesis/frontend-shared` package
@use
'../variables'
as
var
;
// Similar to `.LinkButton`, with inline layout (so button can be used
// within text)
.InlineLinkButton
{
display
:
inline
;
}
.InlineLinkButton--underlined
{
text-decoration
:
underline
;
}
// An IconButton, but override minimum height/width on touch screen devices
.NonResponsiveIconButton
{
@media
(
pointer
:
coarse
)
{
min-width
:
auto
;
min-height
:
auto
;
}
}
// Links
// Styling for a Link that contains only an Icon and no text. Override coloring
// and add some padding
.IconOnlyLink
{
padding
:
var
.
$layout-space
;
color
:
var
.
$grey-7
;
&
:hover:not
([
disabled
])
{
color
:
var
.
$grey-7
;
}
}
src/styles/sidebar/components/_index.scss
View file @
6de3558a
...
...
@@ -4,9 +4,6 @@
// -----------------
@use
'@hypothesis/frontend-shared/styles'
;
// Extensions and overrides to patterns from `frontend-shared`
@use
'../../frontend-shared'
;
// UI (Preact) Components
// ----------
@use
'./StyledText'
;
...
...
src/styles/ui-playground/ui-playground.scss
View file @
6de3558a
// Shared pattern-library styles
@use
'@hypothesis/frontend-shared/styles/pattern-library'
;
// Local overrides to frontend-shared styling
@use
'../frontend-shared'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment