Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web-js
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
office-web-js
Commits
98a2fd04
Commit
98a2fd04
authored
Jan 16, 2023
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 首页移动端适配
parent
cfb8a6ce
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
2 deletions
+119
-2
src/components/HomePageFooter.vue
+25
-0
src/components/HomePageHeader.vue
+12
-1
src/styles/index.scss
+7
-0
src/views/Home/HomePageWrapper.vue
+1
-1
src/views/Home/IndexPage.vue
+74
-0
No files found.
src/components/HomePageFooter.vue
View file @
98a2fd04
...
...
@@ -116,4 +116,29 @@ export default {
height
:
90px
;
margin-left
:
20px
;
}
@media
screen
and
(
max-width
:
1000px
)
{
.home-page-footer
{
flex-direction
:
column-reverse
;
}
.footer-link-item
{
margin-right
:
10px
;
font-size
:
12px
;
padding-bottom
:
8px
!important
;
}
.footer-text
{
font-size
:
12px
;
}
.footer-left
{
border-right
:
none
;
}
.footer-right
{
padding-left
:
0
;
margin-bottom
:
20px
;
}
}
</
style
>
src/components/HomePageHeader.vue
View file @
98a2fd04
...
...
@@ -80,7 +80,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.home-page-header
{
width
:
100%
;
height
:
70px
;
height
:
var
(
--header-height
)
;
position
:
fixed
;
top
:
0
;
left
:
0
;
...
...
@@ -214,4 +214,15 @@ export default {
cursor
:
pointer
;
transition
:
0.3s
;
}
@media
screen
and
(
max-width
:
1000px
)
{
.home-page-header
{
justify-content
:
flex-start
;
padding-left
:
5%
;
}
.header-nav
{
display
:
none
;
}
}
</
style
>
src/styles/index.scss
View file @
98a2fd04
...
...
@@ -3,6 +3,13 @@
:root
{
--primary-color
:
#e28e39
;
--header-height
:
70px
;
}
@media
screen
and
(
max-width
:
1000px
)
{
:root
{
--header-height
:
50px
;
}
}
html
,
...
...
src/views/Home/HomePageWrapper.vue
View file @
98a2fd04
...
...
@@ -28,6 +28,6 @@ export default {
</
script
>
<
style
lang=
"scss"
>
.home-page-content
{
padding-top
:
70px
;
padding-top
:
var
(
--header-height
)
;
}
</
style
>
src/views/Home/IndexPage.vue
View file @
98a2fd04
...
...
@@ -331,4 +331,78 @@ export default {
text-decoration
:
none
;
cursor
:
pointer
;
}
@media
screen
and
(
max-width
:
1000px
)
{
.intro-video-wrapper
{
background-image
:
none
;
padding-top
:
20px
;
}
.intro-wrapper
{
position
:
static
;
color
:
#000
;
padding
:
0
5%
;
}
.intro-content
{
color
:
#787878
;
width
:
unset
;
}
.services-intro
{
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
;
grid-template-rows
:
auto
auto
;
.left-image
{
grid-row
:
1
/
2
;
grid-column
:
1
/
2
;
}
.services-intro-text
{
grid-row
:
2
/
3
;
grid-column
:
1
/
3
;
padding
:
30px
5%
;
}
.right-image
{
grid-row
:
1
/
2
;
grid-column
:
2
/
3
;
}
}
.news-report
{
padding
:
30px
5%
;
align-items
:
stretch
;
}
.news-item
{
flex
:
unset
;
width
:
100%
;
padding-top
:
72%
;
}
.news-report-title
,
.news-wrapper
{
width
:
unset
;
}
.news-wrapper
{
gap
:
10px
;
}
.news-title
{
font-size
:
14px
;
}
.news-brief
{
display
:
block
!important
;
opacity
:
1
!important
;
font-size
:
12px
;
}
.news-summary
::before
{
display
:
none
;
}
}
</
style
>
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