Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Воронков Валерий
/
krystalvpn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit c0dd11b0
authored
2023-04-25 11:36:57 +0300
by
xcoder
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
VPN-45 4. горизонт мобила текста выровнять по центру
1 parent
9df792a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
index.js
style.css
index.js
View file @
c0dd11b
...
@@ -263,6 +263,7 @@ function setOriented(position) {
...
@@ -263,6 +263,7 @@ function setOriented(position) {
const
header
=
document
.
querySelector
(
"header"
);
const
header
=
document
.
querySelector
(
"header"
);
const
mobile
С
rossWrapper
=
document
.
querySelector
(
".mobile-cross-wrapper"
);
const
mobile
С
rossWrapper
=
document
.
querySelector
(
".mobile-cross-wrapper"
);
const
cardBcgOne
=
document
.
querySelector
(
".card.bcg-one"
);
const
cardBcgOne
=
document
.
querySelector
(
".card.bcg-one"
);
const
notationOne
=
document
.
querySelector
(
".notation-one"
);
if
(
main
!=
null
)
{
if
(
main
!=
null
)
{
main
.
classList
.
add
(
"oriented"
);
main
.
classList
.
add
(
"oriented"
);
...
@@ -279,12 +280,17 @@ function setOriented(position) {
...
@@ -279,12 +280,17 @@ function setOriented(position) {
if
(
cardBcgOne
!=
null
)
{
if
(
cardBcgOne
!=
null
)
{
cardBcgOne
.
classList
.
add
(
"oriented"
);
cardBcgOne
.
classList
.
add
(
"oriented"
);
}
}
if
(
notationOne
!=
null
)
{
notationOne
.
classList
.
add
(
"oriented"
);
}
}
}
else
{
else
{
const
main
=
document
.
querySelector
(
".main"
);
const
main
=
document
.
querySelector
(
".main"
);
const
header
=
document
.
querySelector
(
"header"
);
const
header
=
document
.
querySelector
(
"header"
);
const
mobile
С
rossWrapper
=
document
.
querySelector
(
".mobile-cross-wrapper"
);
const
mobile
С
rossWrapper
=
document
.
querySelector
(
".mobile-cross-wrapper"
);
const
cardBcgOne
=
document
.
querySelector
(
".card.bcg-one"
);
const
cardBcgOne
=
document
.
querySelector
(
".card.bcg-one"
);
const
notationOne
=
document
.
querySelector
(
".notation-one"
);
if
(
main
!=
null
)
{
if
(
main
!=
null
)
{
main
.
classList
.
remove
(
"oriented"
);
main
.
classList
.
remove
(
"oriented"
);
...
@@ -301,6 +307,10 @@ function setOriented(position) {
...
@@ -301,6 +307,10 @@ function setOriented(position) {
if
(
cardBcgOne
!=
null
)
{
if
(
cardBcgOne
!=
null
)
{
cardBcgOne
.
classList
.
remove
(
"oriented"
);
cardBcgOne
.
classList
.
remove
(
"oriented"
);
}
}
if
(
notationOne
!=
null
)
{
notationOne
.
classList
.
remove
(
"oriented"
);
}
}
}
}
}
...
...
style.css
View file @
c0dd11b
...
@@ -126,6 +126,8 @@ header > ul.nav.nav-pills > .nav-item > .btn.download {
...
@@ -126,6 +126,8 @@ header > ul.nav.nav-pills > .nav-item > .btn.download {
font-size
:
14px
;
font-size
:
14px
;
line-height
:
19px
;
line-height
:
19px
;
width
:
180px
;
margin
:
0
12px
;
margin
:
0
12px
;
padding
:
18px
0px
;
padding
:
18px
0px
;
}
}
...
@@ -623,6 +625,7 @@ hr.delimeter {
...
@@ -623,6 +625,7 @@ hr.delimeter {
.main
>
.main-first
>
.card.descr
{
.main
>
.main-first
>
.card.descr
{
width
:
100%
;
width
:
100%
;
margin-left
:
0
;
padding
:
14px
;
padding
:
14px
;
}
}
}
}
...
@@ -965,6 +968,10 @@ article.notation-one {
...
@@ -965,6 +968,10 @@ article.notation-one {
user-select
:
none
;
user-select
:
none
;
}
}
article
.notation-one.oriented
{
text-align
:
center
;
}
@media
screen
and
(
max-width
:
680px
)
{
@media
screen
and
(
max-width
:
680px
)
{
article
.notation-one
{
article
.notation-one
{
text-align
:
center
;
text-align
:
center
;
...
@@ -1077,25 +1084,38 @@ article.notation-one {
...
@@ -1077,25 +1084,38 @@ article.notation-one {
display
:
none
;
display
:
none
;
}
}
.main.oriented
>
.main-first
>
.card.
bcg-one
>
.card.
descr
>
.descr-top
{
.main.oriented
>
.main-first
>
.card.descr
>
.descr-top
{
padding
:
0px
0
8px
0
;
padding
:
0px
0
8px
0
;
}
}
.main.oriented
.main.oriented
>
.main-first
>
.main-first
>
.card.bcg-one
>
.card.descr
>
.card.descr
>
.descr-top
>
.descr-top
>
.descr-top__title-top
{
>
.descr-top__title-top
{
font-size
:
20px
;
font-size
:
20px
;
width
:
100%
;
padding
:
0px
0
6px
0
;
padding
:
0px
0
6px
0
;
text-align
:
center
;
}
}
.main.oriented
.main.oriented
>
.main-first
>
.main-first
>
.card.bcg-one
>
.card.descr
>
.card.descr
>
.descr-top
>
.descr-top__title-bottom
{
width
:
100%
;
text-align
:
center
;
}
.main.oriented
>
.main-first
>
.card.descr
>
.descr-top
>
.descr-top__title-bottom
>
.descr-top__title-bottom
>
.title__colored
{
>
.title__colored
{
font-size
:
20px
;
font-size
:
20px
;
...
@@ -1103,13 +1123,20 @@ article.notation-one {
...
@@ -1103,13 +1123,20 @@ article.notation-one {
.main.oriented
.main.oriented
>
.main-first
>
.main-first
>
.card.bcg-one
>
.card.descr
>
.card.descr
>
.descr-top
>
.descr-top__title-bottom
>
.descr-top__title-bottom
>
.title__uncolored
{
>
.title__uncolored
{
font-size
:
20px
;
font-size
:
20px
;
}
}
.main.oriented
>
.main-first
>
.card.descr
>
.descr-bottom
{
width
:
100%
;
}
footer
.footer
{
footer
.footer
{
width
:
100%
;
width
:
100%
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment