forked from elle/ideagora
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scope the avatar positioning for events to its own class.
- Loading branch information
1 parent
1662707
commit b230993
Showing
4 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
$avatar_size: 50px; | |||
$gap: 10px; | |||
|
|||
.event { | |||
@include border-radius(4px); | |||
border: 1px solid transparent; | |||
min-height: $avatar_size; | |||
padding: $gap; | |||
position: relative; | |||
|
|||
> header { | |||
> .title { | |||
line-height: 1; | |||
margin: 0; | |||
} | |||
} | |||
|
|||
&.with-avatar { | |||
padding-left: $avatar_size + $gap*2; | |||
|
|||
> header { | |||
.avatar { | |||
position: absolute; | |||
left: $gap; | |||
top: $gap; | |||
} | |||
} | |||
} | |||
} |
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