-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3339 from fjordllc/main
Release 2021-10-12 05:41:07
- Loading branch information
Showing
47 changed files
with
650 additions
and
224 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/assets/stylesheets/blocks/company/_company-counts.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.company-counts__items | ||
display: flex | ||
justify-content: center | ||
+margin(horizontal, -.125rem) | ||
flex-wrap: wrap | ||
margin-bottom: -.25rem | ||
|
||
.company-counts__item | ||
+padding(horizontal, .125rem) | ||
margin-bottom: .25rem | ||
+media-breakpoint-up(xxl) | ||
flex: 0 0 25% | ||
+media-breakpoint-down(xl) | ||
flex: 0 0 33.33% | ||
+media-breakpoint-down(sm) | ||
flex: 0 0 50% | ||
|
||
.company-counts__item-inner | ||
border: solid 1px $border | ||
border-radius: 3px | ||
|
||
.company-counts__item-label | ||
+text-block(.625rem 1.4, center) | ||
+padding(vertical, .125rem) | ||
border-bottom: solid 1px $border | ||
background-color: $background-more-tint | ||
|
||
.company-counts__item-value | ||
+text-block(1rem 1.4, center) | ||
padding-bottom: .125rem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.company-links__items | ||
display: flex | ||
justify-content: center | ||
+margin(horizontal, -.125rem) | ||
flex-wrap: wrap | ||
margin-bottom: -.25rem | ||
|
||
.company-links__item | ||
+padding(horizontal, .125rem) | ||
margin-bottom: .25rem | ||
+media-breakpoint-up(xxl) | ||
flex: 0 0 33.33% | ||
+media-breakpoint-down(xl) | ||
flex: 0 0 50% |
39 changes: 39 additions & 0 deletions
39
app/assets/stylesheets/blocks/company/_company-profile.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.company-profile__header | ||
padding: 1rem | ||
.company-links__items | ||
justify-content: flex-start | ||
|
||
.company-profile__header-inner | ||
+media-breakpoint-up(md) | ||
display: flex | ||
+media-breakpoint-down(sm) | ||
text-align: center | ||
|
||
.company-profile__header-start | ||
margin-right: 1.25rem | ||
|
||
.company-profile__header-end | ||
flex: 1 | ||
|
||
.company-profile__logo | ||
+media-breakpoint-down(sm) | ||
position: static | ||
text-align: center | ||
margin-bottom: .25rem | ||
|
||
.company-profile__logo-image | ||
+media-breakpoint-up(md) | ||
+size(4.5rem) | ||
+media-breakpoint-down(sm) | ||
+size(3.5rem) | ||
|
||
.company-profile__name | ||
+text-block(1em 1.45, 700 $main-text) | ||
+media-breakpoint-up(md) | ||
font-size: 1.5rem | ||
+media-breakpoint-down(sm) | ||
font-size: 1.25rem | ||
|
||
.company-profile__body | ||
padding: 1rem | ||
border-top: solid 1px $border |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.page-notices | ||
+margin(vertical, -.5rem 1rem) | ||
background-color: $info | ||
|
||
.page-notices__item | ||
&:not(:first-child) | ||
border-top: dashed 1px rgba(white, .2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.companies-item | ||
padding-top: .375rem | ||
padding-bottom: 1.5rem | ||
height: 100% | ||
|
||
.companies-item__inner | ||
+media-breakpoint-up(md) | ||
height: 100% | ||
|
||
.companies-item__header | ||
+position(relative) | ||
padding-left: 3.5rem | ||
padding-right: 1rem | ||
padding-top: .5rem | ||
padding-bottom: .5rem | ||
+media-breakpoint-down(sm) | ||
padding-left: 3rem | ||
&:not(:last-child) | ||
border-bottom: solid 1px $background | ||
|
||
.companies-item__name | ||
+text-block(1em 1.4, 600 $main block) | ||
margin-bottom: .125rem | ||
+media-breakpoint-up(md) | ||
font-size: 1.25rem | ||
+media-breakpoint-down(sm) | ||
font-size: 1.125rem | ||
|
||
.companies-item__name-link | ||
color: $main-text | ||
display: block | ||
+hover-link | ||
|
||
.companies-item__user-icon-image | ||
background-color: white | ||
box-shadow: rgba(black, .2) 0 0 .25rem | ||
+media-breakpoint-up(md) | ||
+size(4rem) | ||
+position(absolute, left -1rem, top -.375rem) | ||
border: solid $base .25rem | ||
+media-breakpoint-down(sm) | ||
+size(3rem) | ||
+position(absolute, left -.5rem, top -.25rem) | ||
border: solid $base .125rem | ||
|
||
.companies-item__body | ||
padding: 1rem | ||
|
||
.companies-item__body-row | ||
&:not(:first-child) | ||
margin-top: .75rem | ||
|
||
.companies-item__description | ||
p | ||
+text-block(.75rem 1.6) | ||
|
||
.user-item__company-logo | ||
max-width: 3rem | ||
background-color: $base | ||
+position(absolute, right 0.5rem, top 0.5rem) | ||
border-radius: .25rem | ||
border: solid 1px $border | ||
+media-breakpoint-down(lg) | ||
+position(absolute, right -0.5rem, top -0.5rem) | ||
border-radius: 50% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module HomeHelper | ||
def today_or_tommorow(event) | ||
if event.start_at.to_date.today? | ||
'今日' | ||
elsif event.start_at.to_date == Date.tomorrow | ||
'明日' | ||
end | ||
end | ||
end |
Oops, something went wrong.