fbpx

Css

The HTML5 Videochat app can be customizes as layout, aspect, interface with custom Css. This involves more advanced designer skills.

Interface Elements

App uses elements from these interface frameworks:

Fomantic UI
Semantic UI React

Layout

/* Panel Layouts */
.layoutChat {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”;
grid-template-columns: 100%;
grid-template-rows: auto60px;
}
.layoutTabs {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “菜单”
pane”;
grid-template-columns: 100%;
grid-template-rows: 45pxauto;
}
.layoutList {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “scrollable
“菜单”;
grid-template-columns: 100%;
grid-template-rows: auto 45px;
}
.layoutScrollable {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “scrollable”;
grid-template-columns: 100%;
grid-template-rows: 100%;
}
.paneActive
{
visibility: visible;
}
.paneInactive
{
visibility: hidden;
}
/* App Layouts */
.layoutBroadcast {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “camera history
actions send”;
grid-template-columns: 45%55%;
grid-template-rows: auto55px;
}
.layoutBroadcastAudio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“相机”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px45px45px;
}
.layoutPlayback {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “video history
actions send”;
grid-template-columns: 65%35%;
grid-template-rows: auto55px;
}
.layoutPlaybackAudio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“视频”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px45px45px;
}
.layoutText {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px45px;
}
.layoutCollaborationText {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “标签”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto45px;
}
.layoutWay2 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “video camera
video history
actions send”;
grid-template-columns: 65%35%;
grid-template-rows: 40%auto45px;
}
.layoutWay2Audio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“视频”
“相机”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto45px45px45px45px;
}
.layoutCollaboration {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “video tabs
actions tabs”;
grid-template-columns: 65%35%;
grid-template-rows: auto45px;
}
/* Mobile Layouts */
/* For lower resolutions video takes full width and chat shows below */
@media only screen and (最大宽度: 1150px)
{
.layoutBroadcast {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “相机”
history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto45%45px40px;
}
.layoutPlayback {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto30%45px40px;
}
.layoutWay2 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
history
“发送”
actions
“相机”;
grid-template-columns: 100%;
grid-template-rows: auto25%45px40px25%;
}
.layoutCollaboration {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
actions
“标签”;
grid-template-columns: 100%;
grid-template-rows: auto60px45%;
}
.layoutCollaborationText {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “标签”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto60px;
}
}
/* For very low resolutions 2 rows action bar */
@media only screen and (最大宽度: 800px)
{
.layoutText {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px90px;
}
.layoutCollaborationText {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “标签”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto90px;
}
.layoutWay2Audio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“视频”
“相机”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px60px90px90px;
}
.layoutBroadcastAudio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“相机”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px90px65px;
}
.layoutPlaybackAudio {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “history
“发送”
“视频”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto55px60px90px;
}
.layoutBroadcast {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “相机”
history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto35%45px65px;
}
.layoutPlayback {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
history
“发送”
actions”;
grid-template-columns: 100%;
grid-template-rows: auto30%55px90px;
}
.layoutWay2 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
history
“发送”
actions
“相机”;
grid-template-columns: 100%;
grid-template-rows: auto20%55px90px30%;
}
.layoutCollaboration{
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “视频”
actions
“标签”;
grid-template-columns: 100%;
grid-template-rows: auto90px40%;
}
}
/* Panels/Components */
.layCamera {
position: 相对;
grid-area: 相机;
}
.layVideo {
position: 相对;
grid-area: 视频;
}
.layHistory {
position: 相对;
grid-area: history;
}
.laySend {
position: 相对;
grid-area: 发送;
}
.layActions {
position: 相对;
grid-area: actions;
}
.layTabs {
position: 相对;
grid-area: 标签;
}
.layMenu {
position: 相对;
grid-area: 菜单;
}
.layPane {
position: 相对;
grid-area: pane;
}
.layChat {
position: 相对;
grid-area: 聊天;
}
.layScrollable {
position: 相对;
grid-area: scrollable;
overflow-y: scroll;
}
/* Split Multimedia Views */
.split0 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0”;
grid-template-columns: 100%;
grid-template-rows: 100%;
}
.splitH2 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0 media1”;
grid-template-columns: 50%50%;
grid-template-rows: 100%;
}
.splitV2 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0
media1”;
grid-template-columns: 100%;
grid-template-rows: 50%50%;
}
.splitH4, .splitV4 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0 media1
media2 media3”;
grid-template-columns: 50%50%;
grid-template-rows: 50%50%;
}
.splitH6 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0 media1 media2
media3 media4 media5”;
grid-template-columns: 34%33%33%;
grid-template-rows: 50%50%;
}
.splitV6 {
position: absolute;
显示: grid;
width: 100%;
height: 100%;
grid-template-areas: “media0 media1
media2 media3
media4 media5”;
grid-template-columns: 50%50%;
grid-template-rows: 34%33%33%;
}
/* Split Multimedia View Slots */
.slot0 {
position: 相对;
grid-area: media0;
}
.slot1 {
position: 相对;
grid-area: media1;
}
.slot2 {
position: 相对;
grid-area: media2;
}
.slot3 {
position: 相对;
grid-area: media3;
}
.slot4 {
position: 相对;
grid-area: media4;
}
.slot5 {
position: 相对;
grid-area: media5;
}
Ps: Latest version may have changes or new elements.

Interface CSS

/* Interface Elements, contained in Controls */
/* 视频 */
.localVideo
{
}
.localVideoPlay
{
}
/* History */
.chatMessageList {
position: absolute;
width: 100%;
height: 100%;
overflow-y: scroll;
/* 背景颜色: rgb(225, 233, 225); */
padding: 0;
保证金: 0;
}
.chatMessageListul {
list-style-type: 没有一个;
}
.chatMessage {
list-style-type: 没有一个;
padding-right: 10px;
字体大小: 12px;
颜色: #777;
font-weight: 正常;
}
.chatMessage.dark
{
颜色: #FFF;
}
.chatMessage.notification {
颜色: #7A7;
text-align: 左;
}
.chatMessage.dark.notification
{
颜色: #EFE;
}
.chatMessage.automated {
字体样式: italic;
颜色: #7AA;
text-align: 左;
}
.chatMessage.user {
text-align: 左;
}
.chatMessageimg {
vertical-align: middle;
padding: 2px;
}
.chatMessagelabel {
显示: 内联块;
最大宽度: 85%;
背景颜色: 白色;
边界半径: 5px;
padding: 5px;
保证金: 2px;
}
.chatMessage.darklabel{
背景颜色: #111;
}
.chatMessage.userstrong {
显示: 内联块;
字体大小: 11px;
padding: 3px;
font-weight: 正常;
}
.chatMessage.useri {
字体大小: 10px;
padding: 3px;
}
.chatMessage.user.own {
text-align: 权利;
}