Skip to content

Commit

Permalink
スライドのCSSと全体の角丸指定変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed May 16, 2024
1 parent c5e7555 commit d97024c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 33 deletions.
2 changes: 1 addition & 1 deletion _g3/assets/_scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $containter-padding:15px;
--vk-size-text-sm: 0.875rem;
--vk-size-text-xs: 0.75rem;

--vk-size-radius: 5px;
--vk-size-radius: 4px;
--vk-size-radius-sm: calc( var( --vk-size-radius ) * 0.5 );
--vk-size-radius-lg: calc( var( --vk-size-radius ) * 1.5 );
--vk-line-height: 1.7em;
Expand Down
37 changes: 8 additions & 29 deletions _g3/assets/_scss/components/_slide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,20 @@
&::after,&::before{
content: none;
}
@media (min-width: $md-min) {
font-size: 24px;
}
@media (min-width: $lg-min) {
font-size: 28px;
}
@media (min-width: $xl-min) {
font-size: 32px;
}
font-size:2dvw;
font-size:clamp(24px,2dvw,32px);
}
&-text-caption {
margin-bottom: 0;
font-size:12px;
@media (min-width: $sm-min) {
}
@media (min-width: $lg-min) {
font-size:1.125rem;
}
@media (min-width: $xl-min) {
font-size:1.250rem;
}
font-size:clamp(14px,1.4dvw,18px);
line-height: 1.6;
}
&-text-title + &-text-caption {
margin-top: 0.7em;
margin-top: 0.5rem;
margin-bottom: 1rem;
}
.btn {
margin-top: 1em;
@media (max-width: $sm-max) {
font-size:12px;
}
font-size:clamp(14px,1.3dvw,18px);
}
picture {
width: 100%;
Expand All @@ -101,14 +85,9 @@
}
// .slide-text-set を含めると 現状カスタマイザからの色指定ががインラインで上書きが効かなくなる
.btn-ghost {
// font-size: 16px;
// margin-top: 1.5em;
padding: 0.5em 2.2em;
padding: 0.4em 2em 0.4em;
color: var(--vk-color-text-body);
border: 1px solid var(--vk-color-text-body);
@media (min-width: $md-min) {
// font-size: 18px;
}
&:hover{
border-color: var(--vk-color-primary);
background-color: var(--vk-color-primary);
Expand Down
2 changes: 1 addition & 1 deletion _g3/assets/css/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g3/assets/css/style-theme-json.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _g3/assets/css/style.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ https://www.vektor-inc.co.jp/inquiry/

== Changelog ==

[ G3 ][ Specification Change ] Change default radius to 4px from 5px
[ G3 ][ Specification Change ] Minor design adjustments to the slide component.

v15.22.1
[ Other ] Update starter and logo

Expand Down

0 comments on commit d97024c

Please sign in to comment.