Skip to content

Commit 343df1b

Browse files
authored
Merge pull request #3649 from bright/remove-bulma-from-website
Remove unused bulma code
2 parents b6601fd + 52f4685 commit 343df1b

39 files changed

+2
-2216
lines changed

src/blog/Paging.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import React from 'react'
22

3-
import { ArrowLeft, ArrowRight } from '../helpers/icons'
4-
import { routeLinks } from '../config/routing'
53
import { useWindowSize } from '../components/utils/use-windowsize'
6-
import * as styles from './Paging.module.scss'
74
import styled from 'styled-components'
85
import { usePagination, DOTS } from './use-pagination/use-pagination'
9-
import classnames from 'classnames'
106
import variables from '../styles/variables'
11-
import { any, number } from 'prop-types'
12-
import { useEffect } from 'react'
137
import { Link } from 'gatsby'
148

159
const PagingWrapper = styled.div`
@@ -172,7 +166,7 @@ export const Paging: React.FC<PagingProps> = ({ pageContext, baseURI }) => {
172166
paginationRange.map((pageNumber: any, i: any) => {
173167
if (pageNumber == DOTS) {
174168
return (
175-
<span key={pageNumber + '-' + i} className='pagination-item dots'>
169+
<span key={pageNumber + '-' + i} className='dots'>
176170
&#8230;
177171
</span>
178172
)

src/styles/bulma/bulma.sass

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
@import "sass/utilities/_all"
44
@import "sass/base/_all"
55
@import "sass/elements/_all"
6-
@import "sass/form/_all"
76
@import "sass/components/_all"
87
@import "sass/grid/_all"
98
@import "sass/layout/_all"

src/styles/bulma/sass/base/generic.sass

-21
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ html
4141
text-size-adjust: 100%
4242

4343
article,
44-
aside,
4544
figure,
4645
footer,
4746
header,
48-
hgroup,
4947
section
5048
display: block
5149

@@ -79,13 +77,6 @@ a
7977
&:hover
8078
color: $link-hover
8179

82-
hr
83-
background-color: $hr-background-color
84-
border: none
85-
display: block
86-
height: $hr-height
87-
margin: $hr-margin
88-
8980
img
9081
height: auto
9182
max-width: 100%
@@ -107,9 +98,6 @@ strong
10798

10899
// Block
109100
110-
fieldset
111-
border: none
112-
113101
pre
114102
+overflow-touch
115103
background-color: $pre-background
@@ -124,12 +112,3 @@ pre
124112
color: currentColor
125113
font-size: $pre-code-font-size
126114
padding: 0
127-
128-
table
129-
td,
130-
th
131-
vertical-align: top
132-
&:not([align])
133-
text-align: left
134-
th
135-
color: $text-strong

src/styles/bulma/sass/base/helpers.sass

-25
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
.is-pulled-right
1010
float: right !important
1111

12-
// Overflow
13-
14-
.is-clipped
15-
overflow: hidden !important
16-
17-
// Overlay
18-
19-
.is-overlay
20-
@extend %overlay
21-
2212
// Typography
2313
2414
=typography-size($target:'')
@@ -82,18 +72,6 @@ $alignments: ('centered': 'center', 'justified': 'justify', 'left': 'left', 'rig
8272
.has-text-#{$alignment}-fullhd
8373
text-align: #{$text-align} !important
8474

85-
.is-capitalized
86-
text-transform: capitalize !important
87-
88-
.is-lowercase
89-
text-transform: lowercase !important
90-
91-
.is-uppercase
92-
text-transform: uppercase !important
93-
94-
.is-italic
95-
font-style: italic !important
96-
9775
@each $name, $pair in $colors
9876
$color: nth($pair, 1)
9977
.has-text-#{$name}
@@ -274,8 +252,5 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex'
274252
.is-shadowless
275253
box-shadow: none !important
276254

277-
.is-unselectable
278-
@extend %unselectable
279-
280255
.is-relative
281256
position: relative !important

src/styles/bulma/sass/base/minireset.sass

-14
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,12 @@ p,
66
ol,
77
ul,
88
li,
9-
dl,
10-
dt,
119
dd,
1210
blockquote,
1311
figure,
14-
fieldset,
15-
legend,
1612
textarea,
1713
pre,
1814
iframe,
19-
hr,
2015
h1,
2116
h2,
2217
h3,
@@ -65,9 +60,6 @@ video
6560
height: auto
6661
max-width: 100%
6762

68-
audio
69-
max-width: 100%
70-
7163
// Iframe
7264
iframe
7365
border: 0
@@ -76,9 +68,3 @@ iframe
7668
table
7769
border-collapse: collapse
7870
border-spacing: 0
79-
80-
td,
81-
th
82-
padding: 0
83-
&:not([align])
84-
text-align: left
-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
@charset "utf-8"
22

3-
@import "breadcrumb.sass"
4-
@import "card.sass"
5-
@import "dropdown.sass"
63
@import "level.sass"
7-
@import "list.sass"
8-
@import "media.sass"
9-
@import "menu.sass"
10-
@import "message.sass"
114
@import "modal.sass"
125
@import "navbar.sass"
13-
@import "pagination.sass"
14-
@import "panel.sass"
15-
@import "tabs.sass"

src/styles/bulma/sass/components/breadcrumb.sass

-75
This file was deleted.

src/styles/bulma/sass/components/card.sass

-79
This file was deleted.

0 commit comments

Comments
 (0)