2016-11-22 16:07:33 +00:00
|
|
|
(ns status-im.discover.styles
|
2016-11-10 12:34:25 +00:00
|
|
|
(:require [status-im.components.styles :refer [color-gray2
|
|
|
|
color-white]]
|
|
|
|
[status-im.components.toolbar.styles :refer [toolbar-background2]]))
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
;; common
|
|
|
|
|
|
|
|
(def row-separator
|
2016-08-04 15:36:13 +00:00
|
|
|
{:border-bottom-width 1
|
|
|
|
:border-bottom-color "#eff2f3"})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def row
|
2016-11-10 12:34:25 +00:00
|
|
|
{:flex-direction :row
|
|
|
|
:margin-bottom 10})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def column
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex-direction :column})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-10 12:34:25 +00:00
|
|
|
(def empty-view
|
|
|
|
{:flex 1
|
|
|
|
:background-color color-white
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
|
|
|
|
2016-08-04 15:36:13 +00:00
|
|
|
;; Toolbar
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-toolbar-content
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex 1
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-toolbar
|
2016-11-10 12:34:25 +00:00
|
|
|
{:background-color toolbar-background2
|
2016-08-04 15:36:13 +00:00
|
|
|
:elevation 0})
|
2016-05-11 10:53:38 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-search-input
|
2016-11-22 13:38:15 +00:00
|
|
|
{:flex 1
|
|
|
|
:align-self "stretch"
|
|
|
|
:margin-left 18
|
|
|
|
:font-size 14
|
|
|
|
:color "#7099e6"})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-title
|
2016-08-04 15:36:13 +00:00
|
|
|
{:color "#000000de"
|
|
|
|
:align-self :center
|
|
|
|
:text-align :center
|
|
|
|
:font-size 16})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def section-spacing
|
2016-08-04 15:36:13 +00:00
|
|
|
{:padding 16})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-05-22 20:36:43 +00:00
|
|
|
(def scroll-view-container
|
2016-11-10 12:34:25 +00:00
|
|
|
{:bounces false})
|
2016-05-22 20:36:43 +00:00
|
|
|
|
2016-08-04 15:36:13 +00:00
|
|
|
;; Popular
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-10 12:34:25 +00:00
|
|
|
(def popular-container
|
|
|
|
{:background-color toolbar-background2})
|
|
|
|
|
2016-05-07 14:53:39 +00:00
|
|
|
(def carousel-page-style
|
2016-11-10 12:34:25 +00:00
|
|
|
{})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def tag-name
|
2016-08-04 15:36:13 +00:00
|
|
|
{:color "#7099e6"
|
|
|
|
:font-size 14
|
|
|
|
:padding-right 5
|
|
|
|
:padding-bottom 2
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def tag-count
|
2016-08-04 15:36:13 +00:00
|
|
|
{:color "#838c93"
|
|
|
|
:font-size 12
|
2016-11-10 12:34:25 +00:00
|
|
|
:padding-right 6
|
2016-08-04 15:36:13 +00:00
|
|
|
:padding-bottom 2
|
|
|
|
:align-items :center
|
|
|
|
:justify-content :center})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def tag-count-container
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex 0.2
|
|
|
|
:flex-direction "column"
|
|
|
|
:align-items "flex-end"
|
2016-11-10 12:34:25 +00:00
|
|
|
:padding-top 6
|
2016-08-04 15:36:13 +00:00
|
|
|
:padding-right 9})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-10 12:34:25 +00:00
|
|
|
(def separator
|
|
|
|
{:background-color "rgb(200, 199, 204)"
|
|
|
|
:height 0.5})
|
|
|
|
|
|
|
|
;; Popular list item
|
|
|
|
|
2016-05-07 14:53:39 +00:00
|
|
|
(def popular-list-container
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex 1
|
|
|
|
:background-color :white
|
2016-11-10 12:34:25 +00:00
|
|
|
:margin-left 16
|
|
|
|
:padding-left 16
|
|
|
|
:padding-top 18})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def popular-list-item
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex-direction :row
|
2016-11-10 12:34:25 +00:00
|
|
|
:padding-bottom 16
|
|
|
|
:top 1})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def popular-list-item-name
|
2016-11-10 12:34:25 +00:00
|
|
|
{:color "black"
|
|
|
|
:font-size 15
|
|
|
|
:padding-bottom 4})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def popular-list-item-name-container
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex 0.8
|
2016-11-10 12:34:25 +00:00
|
|
|
:flex-direction "column"
|
|
|
|
:padding-top 16})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def popular-list-item-avatar-container
|
2016-08-04 15:36:13 +00:00
|
|
|
{:flex 0.2
|
|
|
|
:flex-direction "column"
|
|
|
|
:align-items :center
|
2016-11-10 12:34:25 +00:00
|
|
|
:padding-top 16})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
;; discover_recent
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-10 12:34:25 +00:00
|
|
|
(def recent-container
|
|
|
|
{:background-color toolbar-background2})
|
|
|
|
|
2016-05-07 14:53:39 +00:00
|
|
|
(def recent-list
|
2016-08-04 15:36:13 +00:00
|
|
|
{:background-color :white
|
|
|
|
:padding-left 16})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
;; Discover tag
|
2016-05-07 14:53:39 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-tag-toolbar
|
2016-11-10 12:34:25 +00:00
|
|
|
{:border-bottom-color "#D7D7D7"
|
|
|
|
:border-bottom-width 1})
|
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-tag-container
|
2016-05-07 14:53:39 +00:00
|
|
|
{:flex 1
|
|
|
|
:backgroundColor "#eef2f5"})
|
|
|
|
|
2016-11-10 12:34:25 +00:00
|
|
|
(def tag-title-scroll
|
|
|
|
{:flex 1
|
|
|
|
:alignItems "center"
|
|
|
|
:justifyContent "center"})
|
|
|
|
|
2016-05-12 20:46:17 +00:00
|
|
|
(def tag-title-container
|
2016-05-23 10:13:06 +00:00
|
|
|
{:flex 1
|
|
|
|
:alignItems "center"
|
2016-08-19 13:14:59 +00:00
|
|
|
:justifyContent "center"
|
|
|
|
:flex-direction "row"})
|
2016-05-12 20:46:17 +00:00
|
|
|
|
2016-05-07 14:53:39 +00:00
|
|
|
(def tag-title
|
2016-05-12 20:46:17 +00:00
|
|
|
{:color "#7099e6"
|
2016-08-19 13:14:59 +00:00
|
|
|
:font-size 14
|
|
|
|
:padding-right 5
|
|
|
|
:padding-bottom 2})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def icon-back
|
2016-05-12 20:46:17 +00:00
|
|
|
{:width 8
|
|
|
|
:height 14})
|
2016-05-07 14:53:39 +00:00
|
|
|
|
|
|
|
(def icon-search
|
|
|
|
{:width 17
|
2016-05-11 10:53:38 +00:00
|
|
|
:height 17})
|
2016-05-13 13:58:14 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def discover-container
|
2016-05-13 13:58:14 +00:00
|
|
|
{:flex 1
|
2016-11-10 12:34:25 +00:00
|
|
|
:backgroundColor color-white})
|
2016-05-13 13:58:14 +00:00
|
|
|
|
|
|
|
(def hamburger-icon
|
|
|
|
{:width 16
|
|
|
|
:height 12})
|
|
|
|
|
|
|
|
(def search-icon
|
|
|
|
{:width 17
|
|
|
|
:height 17})
|